Class: AtlasEngine::AddressValidation::Validators::Predicates::City::Present
- Inherits:
-
Predicate
- Object
- Predicate
- AtlasEngine::AddressValidation::Validators::Predicates::City::Present
- Defined in:
- app/models/atlas_engine/address_validation/validators/predicates/city/present.rb
Instance Attribute Summary
Attributes inherited from Predicate
#address, #cache, #field, #message_format
Instance Method Summary collapse
Methods inherited from Predicate
Constructor Details
This class inherits a constructor from AtlasEngine::AddressValidation::Validators::Predicates::Predicate
Instance Method Details
#evaluate ⇒ Object
11 12 13 14 15 |
# File 'app/models/atlas_engine/address_validation/validators/predicates/city/present.rb', line 11 def evaluate return if @cache.country.field(key: :city).autofill(locale: :en).present? build_concern if @address.city.blank? end |