Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# frozen_string_literal: true
# A monkey-patch for Rails controllers/mailers that auto-decorates ivars
# that are passed to views.
module ActiveDecorator
module Monkey
module AbstractController
module Rendering
def view_assigns
hash = super
hash.each_value do |v|
ActiveDecorator::Decorator.instance.decorate v
end
hash
end
end
end
end
end