diff options
author | wycats <wycats@gmail.com> | 2011-05-22 22:34:06 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2011-05-22 22:34:06 -0700 |
commit | 0afefa95049766836e32e6a76873423d8640ebe3 (patch) | |
tree | 898db58796234f83f53259f684c760e2b7d91a4c | |
parent | 5e519fb0150e6ccb7e2486fc8aa2d60d11b53b75 (diff) | |
download | rails-0afefa95049766836e32e6a76873423d8640ebe3.tar.gz rails-0afefa95049766836e32e6a76873423d8640ebe3.tar.bz2 rails-0afefa95049766836e32e6a76873423d8640ebe3.zip |
Make :status an attr_reader to avoid unnecessary warning when replacing status=
-rw-r--r-- | actionpack/lib/action_dispatch/http/response.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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= |