Module: Lycra::Decorator::Model::ClassMethods
- Defined in:
- lib/lycra/decorator/model.rb
Instance Method Summary collapse
Instance Method Details
#decorator(klass = nil) ⇒ Object
10 11 12 13 |
# File 'lib/lycra/decorator/model.rb', line 10 def decorator(klass=nil) @_lycra_decorator = klass if klass @_lycra_decorator || ("#{name}Decorator".constantize rescue nil) end |
#decorator=(klass) ⇒ Object
15 16 17 |
# File 'lib/lycra/decorator/model.rb', line 15 def decorator=(klass) decorator klass end |