Module: ActiveModel::Validations::HelperMethods
- Defined in:
- lib/validates_for_australia/abn_validator.rb,
lib/validates_for_australia/tfn_validator.rb,
lib/validates_for_australia/postcode_validator.rb
Instance Method Summary collapse
- #validates_abn_of(*attr_names) ⇒ Object
- #validates_postcode_of(*attr_names) ⇒ Object
- #validates_tfn_of(*attr_names) ⇒ Object
Instance Method Details
#validates_abn_of(*attr_names) ⇒ Object
29 30 31 |
# File 'lib/validates_for_australia/abn_validator.rb', line 29 def validates_abn_of(*attr_names) validates_with AbnValidator, _merge_attributes(attr_names) end |
#validates_postcode_of(*attr_names) ⇒ Object
30 31 32 |
# File 'lib/validates_for_australia/postcode_validator.rb', line 30 def validates_postcode_of(*attr_names) validates_with PostcodeValidator, _merge_attributes(attr_names) end |
#validates_tfn_of(*attr_names) ⇒ Object
26 27 28 |
# File 'lib/validates_for_australia/tfn_validator.rb', line 26 def validates_tfn_of(*attr_names) validates_with TfnValidator, _merge_attributes(attr_names) end |