diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-12-19 15:05:51 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-19 15:05:51 -0600 |
commit | 3da1b94d07fbbd6cff342a822af1631ae167a9b8 (patch) | |
tree | 9d5c87ce38143ca196aa4681fc5a7678fb330073 /actionpack/lib/action_controller/rack_process.rb | |
parent | 12e416a04b764d0b212e04a53b770f60dc0d7071 (diff) | |
download | rails-3da1b94d07fbbd6cff342a822af1631ae167a9b8.tar.gz rails-3da1b94d07fbbd6cff342a822af1631ae167a9b8.tar.bz2 rails-3da1b94d07fbbd6cff342a822af1631ae167a9b8.zip |
Use status response accessor instead of the 'Status' header
Diffstat (limited to 'actionpack/lib/action_controller/rack_process.rb')
-rw-r--r-- | actionpack/lib/action_controller/rack_process.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/rack_process.rb b/actionpack/lib/action_controller/rack_process.rb index 8483f8e289..e7d00409ca 100644 --- a/actionpack/lib/action_controller/rack_process.rb +++ b/actionpack/lib/action_controller/rack_process.rb @@ -78,14 +78,8 @@ module ActionController #:nodoc: super() end - # Retrieve status from instance variable if has already been delete - def status - @status || super - end - def to_a(&block) @block = block - @status = headers.delete("Status") if [204, 304].include?(status.to_i) headers.delete("Content-Type") [status, headers.to_hash, []] |