Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid to_sym calls

  • Loading branch information...
commit 5d58948fe72e3b0422790b8adc0fab7bbf9e6573 1 parent f8c8ad5
@spastorino spastorino authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_dispatch/http/response.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.