diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2007-01-28 04:57:05 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2007-01-28 04:57:05 +0000 |
commit | c7f50e9a88c381cc274025c766e2edd1dff34d00 (patch) | |
tree | 09fedd78f1b72fab0b3e93ca652cf8ad1905317f /actionpack | |
parent | 1a11bffde107bf5b2daa997a61133cc8a76445e0 (diff) | |
download | rails-c7f50e9a88c381cc274025c766e2edd1dff34d00.tar.gz rails-c7f50e9a88c381cc274025c766e2edd1dff34d00.tar.bz2 rails-c7f50e9a88c381cc274025c766e2edd1dff34d00.zip |
Fix overly greedy rescues when loading helpers. Closes #6268
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6052 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/helpers.rb | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 0cec212f98..e0ccd0b753 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fix overly greedy rescues when loading helpers. Fixes #6268. [Nicholas Seckar] + * Fixed NumberHelper#number_with_delimiter to use "." always for splitting the original number, not the delimiter parameter #7389 [ceefour] * Autolinking recognizes trailing and embedded . , : ; #7354 [Jarkko Laine] diff --git a/actionpack/lib/action_controller/helpers.rb b/actionpack/lib/action_controller/helpers.rb index dfc77851fc..4bea0c0fb9 100644 --- a/actionpack/lib/action_controller/helpers.rb +++ b/actionpack/lib/action_controller/helpers.rb @@ -110,9 +110,11 @@ module ActionController #:nodoc: module_path = module_name.split('::').map { |m| m.underscore }.join('/') require_dependency module_path helper module_name.constantize - rescue LoadError + rescue LoadError => e + raise unless e.is_missing? module_path logger.debug("#{name}: missing default helper path #{module_path}") if logger - rescue NameError + rescue NameError => e + raise unless e.missing_name? module_name logger.debug("#{name}: missing default helper module #{module_name}") if logger end |