Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ng status=
  • Loading branch information...
commit 0afefa95049766836e32e6a76873423d8640ebe3 1 parent 5e519fb
@wycats wycats authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  actionpack/lib/action_dispatch/http/response.rb
View
3  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=
Please sign in to comment.
Something went wrong with that request. Please try again.