Method: Concerns::Percentable::ClassMethods#percented
- Defined in:
- app/models/concerns/percentable.rb
#percented(name, l = nil) ⇒ Object
Class method to define a percentable attribute name : the name of the attribute l : the lambda used to validate the value
38 39 40 |
# File 'app/models/concerns/percentable.rb', line 38 def percented(name, l=nil) included[name] = l end |