aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/helpers.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-02 10:02:14 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-04 16:46:22 +0900
commit370bfda55ff11e289a8ff2464f4a6284e1f0977a (patch)
tree4f18441ace4d45ae71a618422920dd4b9d08691a /actionpack/lib/abstract_controller/helpers.rb
parentbb38df89bfbfc37913babe2edf6ad73b0dc80358 (diff)
downloadrails-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.rb2
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"