lib/representable/decorator.rb in representable-1.4.0 vs lib/representable/decorator.rb in representable-1.4.1

- old
+ new

@@ -11,9 +11,11 @@ def initialize(represented) @represented = represented end def representable_binding_for(attr, format, options) - format.build(attr, represented, options) + context = attr.options[:representer_exec] ? self : represented # DISCUSS: should Decorator know this kinda stuff? + + format.build(attr, represented, options, context) end end end \ No newline at end of file