aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/digest_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Don't include ellipsis in truncated digest outputEugene Kenny2017-12-171-1/+1
| | | | | | | | | | 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
* Introduced `ActiveSupport::Digest` that allows to specify hash function ↵Dmitri Dolguikh2017-12-121-0/+27
implementation and defaults to `Digest::MD5`. Replaced calls to `::Digest::MD5.hexdigest` with calls to `ActiveSupport::Digest.hexdigest`.