diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2017-12-14 09:58:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 09:58:33 -0500 |
commit | 659c516bef2781cc66865fc78ed5dce682566d26 (patch) | |
tree | eb5ac2568af824f216769496d1a698ee2ae3136c /activesupport/lib/active_support/railtie.rb | |
parent | 4bd28efc189cf58891ece9d57d44994039054ca0 (diff) | |
parent | 82822a34217503336d51b7baab82cd18cf71e435 (diff) | |
download | rails-659c516bef2781cc66865fc78ed5dce682566d26.tar.gz rails-659c516bef2781cc66865fc78ed5dce682566d26.tar.bz2 rails-659c516bef2781cc66865fc78ed5dce682566d26.zip |
Merge pull request #31289 from witlessbird/fips-compatibility
Initial support for running Rails on FIPS-certified systems
Diffstat (limited to 'activesupport/lib/active_support/railtie.rb')
-rw-r--r-- | activesupport/lib/active_support/railtie.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/railtie.rb b/activesupport/lib/active_support/railtie.rb index 8560eae110..3488721df9 100644 --- a/activesupport/lib/active_support/railtie.rb +++ b/activesupport/lib/active_support/railtie.rb @@ -66,5 +66,12 @@ module ActiveSupport ActiveSupport.send(k, v) if ActiveSupport.respond_to? k end end + + initializer "active_support.set_hash_digest_class" do |app| + if app.config.active_support.respond_to?(:use_hash_digest_class) && app.config.active_support.use_hash_digest_class + ActiveSupport::Digest.hash_digest_class = + app.config.active_support.use_hash_digest_class + end + end end end |