Skip to content

Commit

Permalink
Refs #37825 - Return OpenSSL::Digest::SHA1 for hash_digest_class
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed Nov 7, 2024
1 parent 4d9f64c commit 1a151be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ class Application < Rails::Application
# Rails 7.0 changed this to true
config.active_record.verify_foreign_keys_for_fixtures = false
config.active_record.automatic_scope_inversing = false
# Rails 7.0 changed this to OpenSSL::Digest::SHA256
# We'd probably need a rotator:
# https://guides.rubyonrails.org/v7.0/upgrading_ruby_on_rails.html#key-generator-digest-class-changing-to-use-sha256
config.active_support.hash_digest_class = OpenSSL::Digest::SHA1

# Setup additional routes by loading all routes file from routes directory
Dir["#{Rails.root}/config/routes/**/*.rb"].each do |route_file|
Expand Down

0 comments on commit 1a151be

Please sign in to comment.