Skip to content

Commit 8231314

Browse files
committed
Remove deprecated config.active_support.use_sha1_digests
1 parent 71f61b1 commit 8231314

File tree

5 files changed

+6
-23
lines changed

5 files changed

+6
-23
lines changed

activesupport/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `config.active_support.use_sha1_digests`.
2+
3+
*Rafael Mendonça França*
4+
15
* Invoking `Object#with_options` without a `&block` argument returns the
26
`ActiveSupport::OptionMerger` instance.
37

activesupport/lib/active_support/railtie.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,6 @@ class Railtie < Rails::Railtie # :nodoc:
121121

122122
initializer "active_support.set_hash_digest_class" do |app|
123123
config.after_initialize do
124-
if app.config.active_support.use_sha1_digests
125-
ActiveSupport::Deprecation.warn(<<-MSG.squish)
126-
config.active_support.use_sha1_digests is deprecated and will
127-
be removed from Rails 7.0. Use
128-
config.active_support.hash_digest_class = OpenSSL::Digest::SHA1 instead.
129-
MSG
130-
ActiveSupport::Digest.hash_digest_class = OpenSSL::Digest::SHA1
131-
end
132-
133124
if klass = app.config.active_support.hash_digest_class
134125
ActiveSupport::Digest.hash_digest_class = klass
135126
end

guides/source/7_0_release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ Please refer to the [Changelog][active-support] for detailed changes.
231231

232232
### Deprecations
233233

234+
* Remove deprecated `config.active_support.use_sha1_digests`.
235+
234236
### Notable changes
235237

236238
Active Job

railties/CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
## Unreleased
2-
31
* Scaffolds now use date_field, time_field and datetime_field instead of
42
date_select, time_select and datetime_select; thus providing native date/time pickers.
53

railties/test/application/configuration_test.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,18 +2358,6 @@ def index
23582358
assert_equal OpenSSL::Digest::MD5, ActiveSupport::Digest.hash_digest_class
23592359
end
23602360

2361-
test "ActiveSupport::Digest.hash_digest_class can be configured via config.active_support.use_sha1_digests" do
2362-
remove_from_config '.*config\.load_defaults.*\n'
2363-
2364-
app_file "config/initializers/new_framework_defaults_6_0.rb", <<-RUBY
2365-
Rails.application.config.active_support.use_sha1_digests = true
2366-
RUBY
2367-
2368-
app "development"
2369-
2370-
assert_equal OpenSSL::Digest::SHA1, ActiveSupport::Digest.hash_digest_class
2371-
end
2372-
23732361
test "ActiveSupport::Digest.hash_digest_class can be configured via config.active_support.hash_digest_class" do
23742362
remove_from_config '.*config\.load_defaults.*\n'
23752363

0 commit comments

Comments
 (0)