Module: ActiveModel::Validations::HelperMethods

Defined in:
lib/luhn_algorithm/validator.rb

Instance Method Summary collapse

Instance Method Details

#validates_luhn_algorithm_of(*attr_names) ⇒ Object



14
15
16
# File 'lib/luhn_algorithm/validator.rb', line 14

def validates_luhn_algorithm_of(*attr_names)
  validates_with LuhnAlgorithmValidator, _merge_attributes(attr_names)
end