aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-03-20 04:37:32 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-03-20 04:37:32 +0000
commiteedd9d7604b6acbabb5d21fe20a87420bc07864c (patch)
tree8eb300376beac857b15254f635cff38117afddee /actionpack
parenta4f1262ac5e55b3b373b5519f252aa8462d576fd (diff)
downloadrails-eedd9d7604b6acbabb5d21fe20a87420bc07864c.tar.gz
rails-eedd9d7604b6acbabb5d21fe20a87420bc07864c.tar.bz2
rails-eedd9d7604b6acbabb5d21fe20a87420bc07864c.zip
Updated Kernel#returning for the AP performance patch [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-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 ab73e0ee86..52bddac092 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 view_class = Class.new(ActionView::Base) do
+ returning Class.new(ActionView::Base) do |view_class|
view_class.send(:include, master_helper_module)
end
end