From 5d58948fe72e3b0422790b8adc0fab7bbf9e6573 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Wed, 13 Feb 2013 16:21:25 -0200 Subject: [PATCH] Avoid to_sym calls --- actionpack/lib/action_dispatch/http/response.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def message 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 -- GitLab