diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-02 10:02:14 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-04 16:46:22 +0900 |
commit | 370bfda55ff11e289a8ff2464f4a6284e1f0977a (patch) | |
tree | 4f18441ace4d45ae71a618422920dd4b9d08691a /actionpack/lib/abstract_controller/helpers.rb | |
parent | bb38df89bfbfc37913babe2edf6ad73b0dc80358 (diff) | |
download | rails-370bfda55ff11e289a8ff2464f4a6284e1f0977a.tar.gz rails-370bfda55ff11e289a8ff2464f4a6284e1f0977a.tar.bz2 rails-370bfda55ff11e289a8ff2464f4a6284e1f0977a.zip |
replace use of MissingSourceFile with LoadError
Diffstat (limited to 'actionpack/lib/abstract_controller/helpers.rb')
-rw-r--r-- | actionpack/lib/abstract_controller/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/helpers.rb b/actionpack/lib/abstract_controller/helpers.rb index 812a35735f..55e9fd9c8d 100644 --- a/actionpack/lib/abstract_controller/helpers.rb +++ b/actionpack/lib/abstract_controller/helpers.rb @@ -169,7 +169,7 @@ module AbstractController module_name = name.sub(/Controller$/, '') module_path = module_name.underscore helper module_path - rescue MissingSourceFile => e + rescue LoadError => e raise e unless e.is_missing? "helpers/#{module_path}_helper" rescue NameError => e raise e unless e.missing_name? "#{module_name}Helper" |