Module: ActiveModel::Validations::HelperMethods

Defined in:
lib/validates_zipcode/helper_methods.rb

Instance Method Summary collapse

Instance Method Details

#validates_zipcode(*attr_names) ⇒ Object


5
6
7
# File 'lib/validates_zipcode/helper_methods.rb', line 5

def validates_zipcode(*attr_names)
  validates_with ZipcodeValidator, _merge_attributes(attr_names)
end