Sha256: 88f3737290bca1dd01d735147b5609d9a05f975b86fcf4d0f7741247786ed733

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true
module ActiveDecorator
  module Monkey
    module ActionView
      module PartialRenderer
        private

        def setup(*)
          super

          @locals.values.each do |v|
            ActiveDecorator::Decorator.instance.decorate v
          end if @locals
          ActiveDecorator::Decorator.instance.decorate @object if @object && (@object != nil)
          ActiveDecorator::Decorator.instance.decorate @collection unless @collection.blank?

          self
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_decorator-0.8.0 lib/active_decorator/monkey/action_view/partial_renderer.rb