Commit Graph

2 Commits

Author SHA1 Message Date
Eugene Kenny
b9e7c676ca Don't include ellipsis in truncated digest output
Using `truncate` to limit the length of the digest has the unwanted side
effect of adding an ellipsis when the input is longer than the limit.

Also:
 - Don't instantiate a new object for every digest
 - Rename the configuration option to `hash_digest_class`
 - Update the CHANGELOG entry to describe how to use the feature
2017-12-17 00:49:02 +00:00
Dmitri Dolguikh
82822a3421 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`.
2017-12-12 11:23:54 -08:00