Commits

Anonymous committed 5d58948

Avoid to_sym calls

Comments (0)

Files changed (1)

actionpack/lib/action_dispatch/http/response.rb

     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