Sha256: 99376d40eddcd9aadde250039fba45c96862db5c944b818aa97c1ea3fddb306c
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
module ActionView class PartialRenderer < AbstractRenderer #:nodoc: def setup_with_decorator(context, options, block) setup_without_decorator context, options, block @locals.values.each do |v| ActiveDecorator::Decorator.instance.decorate_if_model v end if @locals.present? ActiveDecorator::Decorator.instance.decorate_if_model @object @collection.each do |v| ActiveDecorator::Decorator.instance.decorate_if_model v end if @collection.present? self end alias_method_chain :setup, :decorator end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_decorator-0.1.0 | lib/monkey/action_view/partial_renderer.rb |