diff options
author | Dmitri Dolguikh <dmitri@appliedlogic.ca> | 2017-11-29 16:27:27 -0800 |
---|---|---|
committer | Dmitri Dolguikh <dmitri@appliedlogic.ca> | 2017-12-12 11:23:54 -0800 |
commit | 82822a34217503336d51b7baab82cd18cf71e435 (patch) | |
tree | 478fd6d03d57db8a45d0bade4eb4702850a003ed /actionview/lib/action_view | |
parent | d2aca50bbd69c7a12cdcbeaba3dbef2679927b90 (diff) | |
download | rails-82822a34217503336d51b7baab82cd18cf71e435.tar.gz rails-82822a34217503336d51b7baab82cd18cf71e435.tar.bz2 rails-82822a34217503336d51b7baab82cd18cf71e435.zip |
Introduced `ActiveSupport::Digest` that allows to specify hash function implementation
and defaults to `Digest::MD5`.
Replaced calls to `::Digest::MD5.hexdigest` with calls to `ActiveSupport::Digest.hexdigest`.
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/digestor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/digestor.rb b/actionview/lib/action_view/digestor.rb index dfd62bdcfd..1cf0bd3016 100644 --- a/actionview/lib/action_view/digestor.rb +++ b/actionview/lib/action_view/digestor.rb @@ -89,7 +89,7 @@ module ActionView end def digest(finder, stack = []) - Digest::MD5.hexdigest("#{template.source}-#{dependency_digest(finder, stack)}") + ActiveSupport::Digest.hexdigest("#{template.source}-#{dependency_digest(finder, stack)}") end def dependency_digest(finder, stack) |