Module: Draper::Delegation
- Included in:
- CollectionDecorator, Decorator
- Defined in:
- lib/draper/delegation.rb
Instance Method Summary collapse
-
#delegate(*methods, options = {}) ⇒ void
Overrides Module.delegate to make
:object
the default delegation target.
Instance Method Details
#delegate(*methods, options = {}) ⇒ void
8 9 10 11 |
# File 'lib/draper/delegation.rb', line 8 def delegate(*methods) = methods. super(*methods, **.reverse_merge(to: :object)) end |