Remove deprecated file `active_support/core_ext/hash/transform_values`
This commit is contained in:
parent
36eebfe184
commit
96a0cb6938
|
@ -1,3 +1,7 @@
|
|||
* Remove deprecated file `active_support/core_ext/hash/transform_values`.
|
||||
|
||||
*Rafael Mendonça França*
|
||||
|
||||
* Remove deprecated file `active_support/core_ext/hash/compact`.
|
||||
|
||||
*Rafael Mendonça França*
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "active_support/deprecation"
|
||||
|
||||
ActiveSupport::Deprecation.warn "Ruby 2.5+ (required by Rails 6) provides Hash#transform_values natively, so requiring active_support/core_ext/hash/transform_values is no longer necessary. Requiring it will raise LoadError in Rails 6.1."
|
|
@ -3,14 +3,6 @@
|
|||
require_relative "../../abstract_unit"
|
||||
require "active_support/core_ext/hash/indifferent_access"
|
||||
|
||||
class TransformValuesDeprecatedRequireTest < ActiveSupport::TestCase
|
||||
test "requiring transform_values is deprecated" do
|
||||
assert_deprecated do
|
||||
require "active_support/core_ext/hash/transform_values"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class IndifferentTransformValuesTest < ActiveSupport::TestCase
|
||||
test "indifferent access is still indifferent after mapping values" do
|
||||
original = { a: "a", b: "b" }.with_indifferent_access
|
||||
|
|
|
@ -300,6 +300,8 @@ Please refer to the [Changelog][active-support] for detailed changes.
|
|||
|
||||
* Remove deprecated file `active_support/core_ext/hash/compact`.
|
||||
|
||||
* Remove deprecated file `active_support/core_ext/hash/transform_values`.
|
||||
|
||||
### Deprecations
|
||||
|
||||
### Notable changes
|
||||
|
|
Loading…
Reference in New Issue