Sha256: 18cf707cced36248fcd83db2301ae39dd339e5363386986b25d9a149ff8829d7

Contents?: true

Size: 299 Bytes

Versions: 12

Compression:

Stored size: 299 Bytes

Contents

module AbstractController
  module Rendering
    def view_assigns_with_decorator
      hash = view_assigns_without_decorator
      hash.values.each do |v|
        ActiveDecorator::Decorator.instance.decorate v
      end
      hash
    end

    alias_method_chain :view_assigns, :decorator
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_decorator-0.5.3 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.5.2 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.5.1 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.5.0 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.4.0 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.3.4 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.3.3 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.3.2 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.3.1 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.3.0 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.2.1 lib/active_decorator/monkey/abstract_controller/rendering.rb
active_decorator-0.2.0 lib/active_decorator/monkey/abstract_controller/rendering.rb