Class: AtlasEngine::AddressValidation::Validators::Predicates::Province::Exists
- Inherits:
-
AtlasEngine::AddressValidation::Validators::Predicates::Predicate
- Object
- AtlasEngine::AddressValidation::Validators::Predicates::Predicate
- AtlasEngine::AddressValidation::Validators::Predicates::Province::Exists
- Defined in:
- app/models/atlas_engine/address_validation/validators/predicates/province/exists.rb
Instance Attribute Summary
Attributes inherited from AtlasEngine::AddressValidation::Validators::Predicates::Predicate
#address, #cache, #field, #message_format
Instance Method Summary collapse
Methods inherited from AtlasEngine::AddressValidation::Validators::Predicates::Predicate
Constructor Details
This class inherits a constructor from AtlasEngine::AddressValidation::Validators::Predicates::Predicate
Instance Method Details
#evaluate ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/models/atlas_engine/address_validation/validators/predicates/province/exists.rb', line 11 def evaluate return if address.province_code.present? || country_has_no_provinces || @cache.country.province_optional? build_concern end |