diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-02-26 17:49:09 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-02-26 17:49:09 +0000 |
commit | 26eaf073c4de8276663f927fdeeb91453e8b3956 (patch) | |
tree | 1690bbb49d971b063e240d155d58c503de938ee5 /actionpack/lib/action_controller/helpers.rb | |
parent | d11f8d551640c94e22c221c3bee39ab572b1dc72 (diff) | |
download | rails-26eaf073c4de8276663f927fdeeb91453e8b3956.tar.gz rails-26eaf073c4de8276663f927fdeeb91453e8b3956.tar.bz2 rails-26eaf073c4de8276663f927fdeeb91453e8b3956.zip |
Remove ::Controllers related cruft; fix AP tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/helpers.rb')
-rw-r--r-- | actionpack/lib/action_controller/helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/helpers.rb b/actionpack/lib/action_controller/helpers.rb index 19675605d4..e2d97b8fa0 100644 --- a/actionpack/lib/action_controller/helpers.rb +++ b/actionpack/lib/action_controller/helpers.rb @@ -109,7 +109,7 @@ module ActionController #:nodoc: private def default_helper_module! - module_name = name.sub(/^Controllers::/, '').sub(/Controller$|$/, 'Helper') + module_name = name.sub(/Controller$|$/, 'Helper') module_path = module_name.split('::').map { |m| m.underscore }.join('/') require_dependency module_path helper module_name.constantize @@ -128,7 +128,7 @@ module ActionController #:nodoc: rescue MissingSourceFile => e raise unless e.is_missing?("helpers/#{child.controller_path}_helper") end - end + end end end end |