Module: ModelExt::GroupLandingPages::Validations
- Extended by:
- ActiveSupport::Concern
- Included in:
- GroupLandingPage
- Defined in:
- lib/model_ext/group_landing_pages/validations.rb
Instance Method Summary collapse
Instance Method Details
#validate_budget ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/model_ext/group_landing_pages/validations.rb', line 22 def validate_budget return if budget_min_cents == 0 && budget_max_cents == 0 if budget_min_cents > budget_max_cents errors.add(:budget_max, 'must be greater than budget min') end end |