parent
e20604ac02
commit
53cda477d5
|
@ -18,9 +18,7 @@ module Draper
|
||||||
# @param [Enumerable] source
|
# @param [Enumerable] source
|
||||||
# collection to decorate.
|
# collection to decorate.
|
||||||
# @option options [Class, nil] :with (nil)
|
# @option options [Class, nil] :with (nil)
|
||||||
# the decorator class used to decorate each item. When `nil`, it is
|
# the decorator class used to decorate each item. When `nil`, each item's
|
||||||
# inferred from the collection decorator class if possible (e.g.
|
|
||||||
# `ProductsDecorator` maps to `ProductDecorator`), otherwise each item's
|
|
||||||
# {Decoratable#decorate decorate} method will be used.
|
# {Decoratable#decorate decorate} method will be used.
|
||||||
# @option options [Hash] :context ({})
|
# @option options [Hash] :context ({})
|
||||||
# extra data to be stored in the collection decorator and used in
|
# extra data to be stored in the collection decorator and used in
|
||||||
|
|
Loading…
Reference in New Issue