module ActiveModel::Validations::ClassMethods
Public Instance Methods
validates_bank_field_of(*attr_names)
click to toggle source
Validates whether or not the specified field bank complient.
class Account < ActiveRecord::Base validates_bank_field_of :name end
# File lib/swiss_bank_validator/validates_bank_field_of.rb, line 27 def validates_bank_field_of(*attr_names) validates_with BankFieldValidator, _merge_attributes(attr_names) end
Also aliased as: validates_bank_field
validates_iban_format_of(*attr_names)
click to toggle source
Validates whether or not the specified iban is valid.
class Account < ActiveRecord::Base validates_iban_format_of :iban end
# File lib/swiss_bank_validator/validates_iban_format_of.rb, line 97 def validates_iban_format_of(*attr_names) validates_with IbanValidator, _merge_attributes(attr_names) end
Also aliased as: validates_iban