Skip to content
Browse files

fix usage of #returning in ActionController::Base

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent d19e8f4 commit a4f1262ac5e55b3b373b5519f252aa8462d576fd @technoweenie technoweenie committed Mar 20, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/base.rb
View
2 actionpack/lib/action_controller/base.rb
@@ -861,7 +861,7 @@ def reset_session #:doc:
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

0 comments on commit a4f1262

Please sign in to comment.
Something went wrong with that request. Please try again.