aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/response.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-24 23:38:59 +0200
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-24 23:38:59 +0200
commitd182b6ee9c99901553e6e948f91102d03bb041b0 (patch)
tree136116fbbd3205946cbacf57273501c3675458aa /actionpack/lib/action_dispatch/http/response.rb
parent90f59b24dc994b0edca22dbed30846738ddcc41d (diff)
downloadrails-d182b6ee9c99901553e6e948f91102d03bb041b0.tar.gz
rails-d182b6ee9c99901553e6e948f91102d03bb041b0.tar.bz2
rails-d182b6ee9c99901553e6e948f91102d03bb041b0.zip
removed deprecated methods, and related tests, from ActionPack
Diffstat (limited to 'actionpack/lib/action_dispatch/http/response.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index 76d0857b93..f1e85559a3 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -116,32 +116,9 @@ module ActionDispatch # :nodoc:
EMPTY = " "
- class BodyBuster #:nodoc:
- def initialize(response)
- @response = response
- @body = ""
- end
-
- def bust(body)
- body.call(@response, self)
- body.close if body.respond_to?(:close)
- @body
- end
-
- def write(string)
- @body << string.to_s
- end
- end
-
def body=(body)
@blank = true if body == EMPTY
- if body.respond_to?(:call)
- ActiveSupport::Deprecation.warn "Setting a Proc or an object that responds to call " \
- "in response_body is no longer supported", caller
- body = BodyBuster.new(self).bust(body)
- end
-
# Explicitly check for strings. This is *wrong* theoretically
# but if we don't check this, the performance on string bodies
# is bad on Ruby 1.8 (because strings responds to each then).