aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2013-02-13 16:21:25 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2013-02-13 16:21:25 -0200
commit5d58948fe72e3b0422790b8adc0fab7bbf9e6573 (patch)
tree8aeca28ac13665259a5e5c78ce6f66e54f454882 /actionpack/lib/action_dispatch
parentf8c8ad56c8a1cb48c6535fd8e248dcb9049e0aa3 (diff)
downloadrails-5d58948fe72e3b0422790b8adc0fab7bbf9e6573.tar.gz
rails-5d58948fe72e3b0422790b8adc0fab7bbf9e6573.tar.bz2
rails-5d58948fe72e3b0422790b8adc0fab7bbf9e6573.zip
Avoid to_sym calls
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index e7e8905d7e..ca1ace4537 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -170,7 +170,7 @@ module ActionDispatch # :nodoc:
alias_method :status_message, :message
def respond_to?(method)
- if method.to_sym == :to_path
+ if method.to_s == 'to_path'
stream.respond_to?(:to_path)
else
super