Merge pull request #1680 from consul/chore/small_rubocop_cleanup
Chore/small rubocop cleanup
This commit is contained in:
@@ -26,8 +26,8 @@ class Budget
|
||||
validates :author, presence: true
|
||||
validates :description, presence: true
|
||||
validates :heading_id, presence: true
|
||||
validates_presence_of :unfeasibility_explanation, if: :unfeasibility_explanation_required?
|
||||
validates_presence_of :price, if: :price_required?
|
||||
validates :unfeasibility_explanation, presence: { if: :unfeasibility_explanation_required? }
|
||||
validates :price, presence: { if: :price_required? }
|
||||
|
||||
validates :title, length: { in: 4..Budget::Investment.title_max_length }
|
||||
validates :description, length: { maximum: Budget::Investment.description_max_length }
|
||||
|
||||
Reference in New Issue
Block a user