diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-12-18 13:14:09 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-18 13:14:09 -0600 |
commit | a9fde9a2abd6a6505d5fd197ad9640470d8df9be (patch) | |
tree | f115acdeed96396d52a35a875ce5270585db3bc5 /actionpack/lib/action_controller/rack_process.rb | |
parent | 3b35366d5df8c8d8a7b216c42dd96b0cfa38fee4 (diff) | |
download | rails-a9fde9a2abd6a6505d5fd197ad9640470d8df9be.tar.gz rails-a9fde9a2abd6a6505d5fd197ad9640470d8df9be.tar.bz2 rails-a9fde9a2abd6a6505d5fd197ad9640470d8df9be.zip |
Cleanup dispatch path
Diffstat (limited to 'actionpack/lib/action_controller/rack_process.rb')
-rw-r--r-- | actionpack/lib/action_controller/rack_process.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/rack_process.rb b/actionpack/lib/action_controller/rack_process.rb index 778c3c256f..8483f8e289 100644 --- a/actionpack/lib/action_controller/rack_process.rb +++ b/actionpack/lib/action_controller/rack_process.rb @@ -83,7 +83,7 @@ module ActionController #:nodoc: @status || super end - def out(&block) + def to_a(&block) @block = block @status = headers.delete("Status") if [204, 304].include?(status.to_i) @@ -93,7 +93,6 @@ module ActionController #:nodoc: [status, headers.to_hash, self] end end - alias to_a out def each(&callback) if @body.respond_to?(:call) |