Browse files

Explain thyself

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3893 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent f735934 commit 065b3af3582f5f557611b0730996fed885a5e3e9 @seckar seckar committed Mar 16, 2006
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_controller/routing.rb
View
1 actionpack/lib/action_controller/routing.rb
@@ -233,6 +233,7 @@ def traverse_to_controller(segments, start_at = 0)
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}"

0 comments on commit 065b3af

Please sign in to comment.