提交 38aae1b1 编写于 作者: N Nicholas Seckar

Remove unneeded logging

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3531 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 dfa6e14a
......@@ -233,12 +233,9 @@ def traverse_to_controller(segments, start_at = 0)
controller_name = "#{mod_name}Controller"
suppress(NameError) do
ActionController::Base.logger.info("Looking for #{controller_name}")
controller = eval("mod::#{controller_name}", nil, __FILE__, __LINE__)
ActionController::Base.logger.info("Found")
# Detect the case when const_get returns an object from a parent namespace.
ActionController::Base.logger.info("#{controller.name} == #{mod.name}::#{controller_name}")
# Detect the case when const_get returns an object from a parent namespace.
if mod == Object || controller.name == "#{mod.name}::#{controller_name}"
return controller, (index - start_at)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册