From 507c9970ab2d9e8296d605bc94843e2aa62aa5fd Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Mon, 20 Feb 2017 22:15:31 +0100 Subject: Revert "Merge pull request #27925 from robin850/hwia-removal" Pointed out by @matthewd that the HWIA subclass changes the AS scoped class and top-level HWIA hierarchies out from under existing classes. This reverts commit 71da39097b67114329be6d8db7fe6911124531af, reversing changes made to 41c33bd4b2ec3f4a482e6030b6fda15091d81e4a. --- .../lib/active_support/hash_with_indifferent_access.rb | 18 +----------------- 1 file changed, 1 insertion(+), 17 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 8638667082..79e7feaf47 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -316,20 +316,4 @@ module ActiveSupport end end -class HashWithIndifferentAccess < ActiveSupport::HashWithIndifferentAccess - def initialize(*) - ActiveSupport::Deprecation.warn "HashWithIndifferentAccess is deprecated!" \ - "Use ActiveSupport::HashWithIndifferentAccess instead." - super - end - - def self.inherited(*) - ActiveSupport::Deprecation.warn "HashWithIndifferentAccess is deprecated!" \ - "Use ActiveSupport::HashWithIndifferentAccess instead." - super - end - - def encode_with(coder) - coder.represent_object(nil, ActiveSupport::HashWithIndifferentAccess.new(self)) - end -end +HashWithIndifferentAccess = ActiveSupport::HashWithIndifferentAccess -- cgit v1.2.3