diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-06 22:02:23 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-06 22:02:23 -0700 |
commit | 5eb893f72d189a7ad82c9a6f45873e2317f202d5 (patch) | |
tree | 04a5ceab74b575d01e9d04774a6c1988f13ffcd0 | |
parent | 84fb971c2f3f26452fbc73467c13d039fe4c2024 (diff) | |
download | rails-5eb893f72d189a7ad82c9a6f45873e2317f202d5.tar.gz rails-5eb893f72d189a7ad82c9a6f45873e2317f202d5.tar.bz2 rails-5eb893f72d189a7ad82c9a6f45873e2317f202d5.zip |
Don't use deprecated String#each
-rw-r--r-- | actionpack/lib/action_controller/rack_process.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/rack_process.rb b/actionpack/lib/action_controller/rack_process.rb index 37b56dabca..9b4aa9b7cf 100644 --- a/actionpack/lib/action_controller/rack_process.rb +++ b/actionpack/lib/action_controller/rack_process.rb @@ -189,6 +189,8 @@ end_msg if @body.respond_to?(:call) @writer = lambda { |x| callback.call(x) } @body.call(self, self) + elsif @body.is_a?(String) + @body.each_line(&callback) else @body.each(&callback) end |