aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-12-27 09:30:36 +0100
committerJosé Valim <jose.valim@gmail.com>2010-12-27 09:30:36 +0100
commit6b099975fa7e18356b19eca659595713512209e1 (patch)
treee4dd02be7f594cb30792a232f17f71535f7216a6 /actionpack/lib/action_controller
parent51a7d9acdd4a01fb23e21be7a89e6440e51715e8 (diff)
downloadrails-6b099975fa7e18356b19eca659595713512209e1.tar.gz
rails-6b099975fa7e18356b19eca659595713512209e1.tar.bz2
rails-6b099975fa7e18356b19eca659595713512209e1.zip
No need to symbolize these.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/responder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/responder.rb b/actionpack/lib/action_controller/metal/responder.rb
index 38d32211cc..cffef29f83 100644
--- a/actionpack/lib/action_controller/metal/responder.rb
+++ b/actionpack/lib/action_controller/metal/responder.rb
@@ -115,7 +115,7 @@ module ActionController #:nodoc:
# Main entry point for responder responsible to dispatch to the proper format.
#
def respond
- method = :"to_#{format}"
+ method = "to_#{format}"
respond_to?(method) ? send(method) : to_format
end
@@ -171,7 +171,7 @@ module ActionController #:nodoc:
# Checks whether the resource responds to the current format or not.
#
def resourceful?
- resource.respond_to?(:"to_#{format}")
+ resource.respond_to?("to_#{format}")
end
# Returns the resource location by retrieving it from the options or