aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2017-12-14 09:58:33 -0500
committerGitHub <noreply@github.com>2017-12-14 09:58:33 -0500
commit659c516bef2781cc66865fc78ed5dce682566d26 (patch)
treeeb5ac2568af824f216769496d1a698ee2ae3136c /activerecord/lib/active_record
parent4bd28efc189cf58891ece9d57d44994039054ca0 (diff)
parent82822a34217503336d51b7baab82cd18cf71e435 (diff)
downloadrails-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 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/collection_cache_key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/collection_cache_key.rb b/activerecord/lib/active_record/collection_cache_key.rb
index 88b398ad45..023d144693 100644
--- a/activerecord/lib/active_record/collection_cache_key.rb
+++ b/activerecord/lib/active_record/collection_cache_key.rb
@@ -3,7 +3,7 @@
module ActiveRecord
module CollectionCacheKey
def collection_cache_key(collection = all, timestamp_column = :updated_at) # :nodoc:
- query_signature = Digest::MD5.hexdigest(collection.to_sql)
+ query_signature = ActiveSupport::Digest.hexdigest(collection.to_sql)
key = "#{collection.model_name.cache_key}/query-#{query_signature}"
if collection.loaded?