Module: ActiveModel::Validations::HelperMethods
- Defined in:
- lib/rails-countries/validators.rb
Instance Method Summary collapse
- #validates_countries_alpha2_of(*attributes) ⇒ Object
- #validates_countries_alpha3_of(*attributes) ⇒ Object
Instance Method Details
#validates_countries_alpha2_of(*attributes) ⇒ Object
19 20 21 |
# File 'lib/rails-countries/validators.rb', line 19 def validates_countries_alpha2_of(*attributes) validates_with CountriesAlpha2Validator, _merge_attributes(attributes) end |
#validates_countries_alpha3_of(*attributes) ⇒ Object
23 24 25 |
# File 'lib/rails-countries/validators.rb', line 23 def validates_countries_alpha3_of(*attributes) validates_with CountriesAlpha3Validator, _merge_attributes(attributes) end |