aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/response.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 12:26:01 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 12:26:01 -0300
commit6d72485b6977804a872dcfa5d7ade2cec74c768e (patch)
treeff4e2cf5ab8a010c00ee46ad8e7d26a479e416b5 /actionpack/lib/action_dispatch/http/response.rb
parentc7a1fa364012c70e76d19b36881c9bde016091b8 (diff)
parentbf7b8c193ffe2d6a05272a6ed763d87cfe743bb4 (diff)
downloadrails-6d72485b6977804a872dcfa5d7ade2cec74c768e.tar.gz
rails-6d72485b6977804a872dcfa5d7ade2cec74c768e.tar.bz2
rails-6d72485b6977804a872dcfa5d7ade2cec74c768e.zip
Merge pull request #18325 from rafaelfranca/rm-remove-deprecations
Remove all deprecation code
Diffstat (limited to 'actionpack/lib/action_dispatch/http/response.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index 33de2f8b5f..4061ea71a3 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -1,6 +1,4 @@
require 'active_support/core_ext/module/attribute_accessors'
-require 'active_support/core_ext/string/filters'
-require 'active_support/deprecation'
require 'action_dispatch/http/filter_redirect'
require 'monitor'
@@ -284,20 +282,6 @@ module ActionDispatch # :nodoc:
end
alias prepare! to_a
- # Be super clear that a response object is not an Array. Defining this
- # would make implicit splatting work, but it also makes adding responses
- # as arrays work, and "flattening" responses, cascading to the rack body!
- # Not sensible behavior.
- def to_ary
- ActiveSupport::Deprecation.warn(<<-MSG.squish)
- `ActionDispatch::Response#to_ary` no longer performs implicit conversion
- to an array. Please use `response.to_a` instead, or a splat like `status,
- headers, body = *response`.
- MSG
-
- to_a
- end
-
# Returns the response cookies, converted to a Hash of (name => value) pairs
#
# assert_equal 'AuthorOfNewPage', r.cookies['author']