diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-07-01 11:16:18 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-07-01 11:16:18 -0700 |
commit | 0515256fd32e6efb67fe90aedf0dadc25dc9e1ba (patch) | |
tree | a2cf4e8c529f4ccb1c5295f33c8f6c09146cf298 /actionpack/lib/action_controller | |
parent | eea7b5db1db5d7e6020c5bcb6b4d85afcbc2e696 (diff) | |
download | rails-0515256fd32e6efb67fe90aedf0dadc25dc9e1ba.tar.gz rails-0515256fd32e6efb67fe90aedf0dadc25dc9e1ba.tar.bz2 rails-0515256fd32e6efb67fe90aedf0dadc25dc9e1ba.zip |
Accept Symbol for contoller name [#2855 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/routing/route_set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing/route_set.rb b/actionpack/lib/action_controller/routing/route_set.rb index 45ad8a3a3b..87b4b0571c 100644 --- a/actionpack/lib/action_controller/routing/route_set.rb +++ b/actionpack/lib/action_controller/routing/route_set.rb @@ -436,7 +436,7 @@ module ActionController def recognize(request) params = recognize_path(request.path, extract_request_environment(request)) request.path_parameters = params.with_indifferent_access - "#{params[:controller].camelize}Controller".constantize + "#{params[:controller].to_s.camelize}Controller".constantize end def recognize_path(path, environment={}) |