diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-05-10 04:54:17 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-10-09 23:57:13 -0300 |
commit | a2762d95c6f2c1cf6ba96002ffb5ebea7c3eac61 (patch) | |
tree | 5a40fc396c63770ffeb1093f73c713d8640a4cb9 /actionpack/lib/action_controller/metal/head.rb | |
parent | 6c24e47edaac6e502a3800f41890c3a787b7ad3a (diff) | |
download | rails-a2762d95c6f2c1cf6ba96002ffb5ebea7c3eac61.tar.gz rails-a2762d95c6f2c1cf6ba96002ffb5ebea7c3eac61.tar.bz2 rails-a2762d95c6f2c1cf6ba96002ffb5ebea7c3eac61.zip |
Remove deprecated support for status option in head
Diffstat (limited to 'actionpack/lib/action_controller/metal/head.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/head.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/metal/head.rb b/actionpack/lib/action_controller/metal/head.rb index 86b5eb20d7..4dff23dd85 100644 --- a/actionpack/lib/action_controller/metal/head.rb +++ b/actionpack/lib/action_controller/metal/head.rb @@ -18,13 +18,7 @@ module ActionController # See Rack::Utils::SYMBOL_TO_STATUS_CODE for a full list of valid +status+ symbols. def head(status, options = {}) if status.is_a?(Hash) - msg = status[:status] ? "The :status option" : "The implicit :ok status" - options, status = status, status.delete(:status) - - ActiveSupport::Deprecation.warn(<<-MSG.squish) - #{msg} on `head` has been deprecated and will be removed in Rails 5.1. - Please pass the status as a separate parameter before the options, instead. - MSG + raise ArgumentError, "#{status.inspect} is not a valid value for `status`." end status ||= :ok |