Permalink
Browse files

Catch ArgumentError not NameError

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@514 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Jan 25, 2005
1 parent 7624225 commit c328f64e37dac9bdec742bb82ffde14b84fe5e74
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/helpers.rb
@@ -96,7 +96,7 @@ def inherited(child)
inherited_without_helper(child)
begin
child.helper(child.controller_name)
- rescue NameError, LoadError
+ rescue ArgumentError, LoadError
# No default helper available for this controller
end
end

0 comments on commit c328f64

Please sign in to comment.