Fix all Rails/Validation rubocop issues and remove files from rubocop_todo list
This commit is contained in:
@@ -15,7 +15,7 @@ class SpendingProposal < ActiveRecord::Base
|
||||
validates :title, presence: true
|
||||
validates :author, presence: true
|
||||
validates :description, presence: true
|
||||
validates_presence_of :feasible_explanation, if: :feasible_explanation_required?
|
||||
validates :feasible_explanation, presence: { if: :feasible_explanation_required? }
|
||||
|
||||
validates :title, length: { in: 4..SpendingProposal.title_max_length }
|
||||
validates :description, length: { maximum: SpendingProposal.description_max_length }
|
||||
|
||||
Reference in New Issue
Block a user