Module: Draper::Decoratable::CollectionProxy
- Defined in:
- lib/draper/decoratable/collection_proxy.rb
Instance Method Summary collapse
-
#decorate(options = {}) ⇒ Object
Decorates a collection of objects.
Instance Method Details
#decorate(options = {}) ⇒ Object
Decorates a collection of objects. Used at the end of a scope chain.
10 11 12 |
# File 'lib/draper/decoratable/collection_proxy.rb', line 10 def decorate( = {}) decorator_class.decorate_collection(load_target, .reverse_merge(with: nil)) end |