module Draper::Decoratable::CollectionProxy
Public Instance Methods
Source
# File lib/draper/decoratable/collection_proxy.rb, line 10 def decorate(options = {}) decorator_class.decorate_collection(load_target, options.reverse_merge(with: nil)) end
Decorates a collection of objects. Used at the end of a scope chain.
@example
company.products.popular.decorate
@param [Hash] options
see {Decorator.decorate_collection}.