Module: Draper::ModelSupport

Defined in:
lib/draper/model_support.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) decorator



2
3
4
# File 'lib/draper/model_support.rb', line 2

def decorator
  @decorator ||= "#{self.class.name}Decorator".constantize.decorate(self)
end