Skip to content
Browse files

Reuse variable to avoid symbol usage

  • Loading branch information...
1 parent daf4262 commit 69c5e010dcff0545fb2f38672e28894f230b1338 @carlosantoniodasilva carlosantoniodasilva committed Aug 31, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/http/response.rb
View
4 actionpack/lib/action_dispatch/http/response.rb
@@ -41,7 +41,7 @@ class Response
# Get and set headers for this response.
attr_accessor :header
-
+
alias_method :headers=, :header=
alias_method :headers, :header
@@ -183,7 +183,7 @@ def message
def respond_to?(method, include_private = false)
if method.to_s == 'to_path'
- stream.respond_to?(:to_path)
+ stream.respond_to?(method)
else
super
end

0 comments on commit 69c5e01

Please sign in to comment.
Something went wrong with that request. Please try again.