Class: Spree::DefaultTaxZoneValidator
- Inherits:
-
ActiveModel::Validator
- Object
- ActiveModel::Validator
- Spree::DefaultTaxZoneValidator
- Defined in:
- app/models/spree/tax_rate.rb
Instance Method Summary collapse
Instance Method Details
#validate(record) ⇒ Object
3 4 5 6 7 |
# File 'app/models/spree/tax_rate.rb', line 3 def validate(record) if record.included_in_price record.errors.add(:included_in_price, Spree.t(:included_price_validation)) unless Zone.default_tax end end |