diff options
author | Yehuda Katz <wycats@Yehuda-Katz.local> | 2010-01-19 22:35:09 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@Yehuda-Katz.local> | 2010-01-19 22:35:26 -0800 |
commit | 1a50d2e66a80c910fe1e2203eb2c993e5dbc4e5b (patch) | |
tree | 57994f2048b69feb96ffa33ca6d084daec26b47c /actionpack | |
parent | 5ebfa6242726bd186452640ed5704f2adc1a5007 (diff) | |
download | rails-1a50d2e66a80c910fe1e2203eb2c993e5dbc4e5b.tar.gz rails-1a50d2e66a80c910fe1e2203eb2c993e5dbc4e5b.tar.bz2 rails-1a50d2e66a80c910fe1e2203eb2c993e5dbc4e5b.zip |
Stop overriding LoadError.new to return a MissingSourceError (and sometimes nil!)
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/helpers.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/new_base/base_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/helpers.rb b/actionpack/lib/action_controller/metal/helpers.rb index d0402e5bad..cdd14560e1 100644 --- a/actionpack/lib/action_controller/metal/helpers.rb +++ b/actionpack/lib/action_controller/metal/helpers.rb @@ -100,7 +100,7 @@ module ActionController module_path = module_name.underscore helper module_path rescue MissingSourceFile => e - raise e unless e.is_missing? "#{module_path}_helper" + raise e unless e.is_missing? "helpers/#{module_path}_helper" rescue NameError => e raise e unless e.missing_name? "#{module_name}Helper" end diff --git a/actionpack/test/controller/new_base/base_test.rb b/actionpack/test/controller/new_base/base_test.rb index 579f9f349f..0b40f8ce95 100644 --- a/actionpack/test/controller/new_base/base_test.rb +++ b/actionpack/test/controller/new_base/base_test.rb @@ -22,7 +22,7 @@ module Dispatching end def show_actions - render :text => "actions: #{action_methods.to_a.join(', ')}" + render :text => "actions: #{action_methods.to_a.sort.join(', ')}" end protected |