diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-13 22:35:51 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-13 23:09:03 +0000 |
commit | 2ff2b98032409d162cd2a0ffc1b21c63057f628d (patch) | |
tree | 69dea7e4526ee307ea258436cf684a0352ac2367 /activesupport/lib | |
parent | 0e8d297301305af9ac5d64e7cd2b0a418c139fce (diff) | |
download | rails-2ff2b98032409d162cd2a0ffc1b21c63057f628d.tar.gz rails-2ff2b98032409d162cd2a0ffc1b21c63057f628d.tar.bz2 rails-2ff2b98032409d162cd2a0ffc1b21c63057f628d.zip |
Remove deprecated new_from_hash_copying_default
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/hash_with_indifferent_access.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb index 1bed489547..5919b89338 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -84,15 +84,6 @@ module ActiveSupport end end - def self.new_from_hash_copying_default(hash) - ActiveSupport::Deprecation.warn(<<-MSG.squish) - `ActiveSupport::HashWithIndifferentAccess.new_from_hash_copying_default` - has been deprecated, and will be removed in Rails 5.1. The behavior of - this method is now identical to the behavior of `.new`. - MSG - new(hash) - end - def self.[](*args) new.merge!(Hash[*args]) end |