aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-xactionpack/lib/action_controller/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 52bddac092..ab73e0ee86 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -861,7 +861,7 @@ module ActionController #:nodoc:
def self.view_class
@view_class ||=
# create a new class based on the default template class and include helper methods
- returning Class.new(ActionView::Base) do |view_class|
+ returning view_class = Class.new(ActionView::Base) do
view_class.send(:include, master_helper_module)
end
end