Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/representable/hash/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def create_representation_with(doc, options, format)
bin = representable_bindings_for(format, options).first

Collect[*bin.default_render_fragment_functions].
(represented, {doc: doc, fragment: represented, options: options, binding: bin, represented: represented})
(represented, {doc: doc, fragment: represented, options: options, binding: bin, represented: represented, decorator: self})
end

def update_properties_from(doc, options, format)
Expand All @@ -38,7 +38,7 @@ def update_properties_from(doc, options, format)
bin = representable_bindings_for(format, options).first

value = Collect[*bin.default_parse_fragment_functions].
(doc, fragment: doc, document: doc, options: options, binding: bin, represented: represented)
(doc, fragment: doc, document: doc, options: options, binding: bin, represented: represented, decorator: self)

represented.replace(value)
end
Expand Down