From 69c5e010dcff0545fb2f38672e28894f230b1338 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 31 Aug 2013 19:01:39 -0300 Subject: Reuse variable to avoid symbol usage --- actionpack/lib/action_dispatch/http/response.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch') 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 -- cgit v1.2.3