diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-08-31 19:01:39 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-08-31 19:01:39 -0300 |
commit | 69c5e010dcff0545fb2f38672e28894f230b1338 (patch) | |
tree | ad2cd3d40f661694ee9769c1e9501c088f8f5e4e /actionpack/lib/action_dispatch | |
parent | daf426291a4d239b373db4f981804247b8ea3b6b (diff) | |
download | rails-69c5e010dcff0545fb2f38672e28894f230b1338.tar.gz rails-69c5e010dcff0545fb2f38672e28894f230b1338.tar.bz2 rails-69c5e010dcff0545fb2f38672e28894f230b1338.zip |
Reuse variable to avoid symbol usage
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/http/response.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index cf10190bd1..5247e61a23 100644 --- a/actionpack/lib/action_dispatch/http/response.rb +++ b/actionpack/lib/action_dispatch/http/response.rb @@ -41,7 +41,7 @@ module ActionDispatch # :nodoc: # Get and set headers for this response. attr_accessor :header - + alias_method :headers=, :header= alias_method :headers, :header @@ -183,7 +183,7 @@ module ActionDispatch # :nodoc: 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 |