lib/representable/decorator.rb in representable-1.5.1 vs lib/representable/decorator.rb in representable-1.5.2
- old
+ new
@@ -12,10 +12,10 @@
def initialize(represented)
@represented = represented
end
def representable_binding_for(attr, format, options)
- context = attr.options[:representer_exec] ? self : represented # DISCUSS: should Decorator know this kinda stuff?
+ context = attr.options[:decorator_scope] ? self : represented # DISCUSS: should Decorator know this kinda stuff?
format.build(attr, represented, options, context)
end
end
end
\ No newline at end of file