diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-03-16 04:09:18 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-03-16 04:09:18 +0000 |
commit | 065b3af3582f5f557611b0730996fed885a5e3e9 (patch) | |
tree | f26bf36d3d6c95a36ca012e86bf7d47abfae8d44 /actionpack/lib | |
parent | f7359342afbe3e654dfb0e78770493deba7342c9 (diff) | |
download | rails-065b3af3582f5f557611b0730996fed885a5e3e9.tar.gz rails-065b3af3582f5f557611b0730996fed885a5e3e9.tar.bz2 rails-065b3af3582f5f557611b0730996fed885a5e3e9.zip |
Explain thyself
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3893 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 3529c70237..d6e287e0ba 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -233,6 +233,7 @@ module ActionController controller_name = "#{mod_name}Controller" begin + # We use eval instead of const_get to avoid obtaining values from parent modules. controller = eval("mod::#{controller_name}", nil, __FILE__, __LINE__) expected_name = "#{mod.name}::#{controller_name}" |