From 0afefa95049766836e32e6a76873423d8640ebe3 Mon Sep 17 00:00:00 2001 From: wycats Date: Sun, 22 May 2011 22:34:06 -0700 Subject: Make :status an attr_reader to avoid unnecessary warning when replacing status= --- actionpack/lib/action_dispatch/http/response.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index 3a6b1da4fd..76d0857b93 100644 --- a/actionpack/lib/action_dispatch/http/response.rb +++ b/actionpack/lib/action_dispatch/http/response.rb @@ -33,7 +33,8 @@ module ActionDispatch # :nodoc: # end # end class Response - attr_accessor :request, :header, :status + attr_accessor :request, :header + attr_reader :status attr_writer :sending_file alias_method :headers=, :header= -- cgit v1.2.3