Module: Lycra::Decorator::Model::InstanceMethods
- Defined in:
- lib/lycra/decorator/model.rb
Instance Method Summary collapse
Instance Method Details
#decorator(decorator_class = nil) ⇒ Object
26 27 28 29 |
# File 'lib/lycra/decorator/model.rb', line 26 def decorator(decorator_class=nil) return decorator_class.new(self) if decorator_class @decorator ||= self.class.decorator.new(self) end |
#reload ⇒ Object
21 22 23 24 |
# File 'lib/lycra/decorator/model.rb', line 21 def reload @decorator = nil super end |