module ActiveModel::Validations::HelperMethods
Public Instance Methods
validates_countries_alpha2_of(*attributes)
click to toggle source
# 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)
click to toggle source
# File lib/rails-countries/validators.rb, line 23 def validates_countries_alpha3_of(*attributes) validates_with CountriesAlpha3Validator, _merge_attributes(attributes) end