From 2ff2b98032409d162cd2a0ffc1b21c63057f628d Mon Sep 17 00:00:00 2001 From: Andrew White Date: Sun, 13 Nov 2016 22:35:51 +0000 Subject: Remove deprecated new_from_hash_copying_default --- activesupport/lib/active_support/hash_with_indifferent_access.rb | 9 --------- 1 file changed, 9 deletions(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3