From a4f1262ac5e55b3b373b5519f252aa8462d576fd Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Mon, 20 Mar 2006 04:33:13 +0000 Subject: fix usage of #returning in ActionController::Base git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3