Permalink
Browse files

Make :status an attr_reader to avoid unnecessary warning when replaci…

…ng status=
  • Loading branch information...
1 parent 5e519fb commit 0afefa95049766836e32e6a76873423d8640ebe3 @wycats wycats committed May 23, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 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=

0 comments on commit 0afefa9

Please sign in to comment.