Module: Para::Admin::DecoratorsHelper

Defined in:
app/helpers/para/admin/decorators_helper.rb

Instance Method Summary collapse

Instance Method Details

#decorate(object) ⇒ Object



8
9
10
# File 'app/helpers/para/admin/decorators_helper.rb', line 8

def decorate(object)
  ActiveDecorator::Decorator.instance.decorate(object)
end

#decorated(object) ⇒ Object



4
5
6
# File 'app/helpers/para/admin/decorators_helper.rb', line 4

def decorated(object)
  object.tap(&method(:decorate))
end