Module: Decco::Helpers

Defined in:
lib/decco/helpers.rb

Instance Method Summary collapse

Instance Method Details

#d(object, decorator = nil) ⇒ Mixed

Decorate, passing view context

Parameters:

  • Object (Mixed)

    to decorate

  • Decorator (Mixed)

    to use

Returns:

  • (Mixed)

    Decorator



8
9
10
# File 'lib/decco/helpers.rb', line 8

def d(object, decorator = nil)
  Decco.decorate(object, decorator, self)
end