Module: Concerns::Percentable::ClassMethods

Defined in:
app/models/concerns/percentable.rb

Instance Method Summary collapse

Instance Method Details

#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