chaynHQ / soulmedicine

Soul Medicine a multilingual digital service designed to deliver critical safety information and supportive messaging in bite-sized pieces.
https://soulmedicine.io
MIT License
34 stars 7 forks source link

Update digest class to SHA256 #398

Closed tarebyte closed 7 months ago

tarebyte commented 8 months ago

Issue ticket link / number:

https://github.com/chaynHQ/soulmedicine/issues/391

What changes did you make?

This updates the digest class for ActiveSupport::Digest to use OpenSSL::Digest::SHA256. This digest is used for things like ETags and ActiveRecord query caching.

Why did you make the changes?

This is the new standard recommendation from Rails. See https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#digest-class-for-activesupport-digest-changing-to-sha256