✨ Recognize teammates in slack by awarding them sparkles!
at main 13 lines 438 B view raw
1Hanami.app.register_provider(:encrypted_attributes) do 2 prepare do 3 require "rom/encrypted_attribute" 4 5 ROM::EncryptedAttribute.configure do |config| 6 config.primary_key = "your-primary-key" # required 7 config.key_derivation_salt = "your-derivation-salt" # required 8 config.hash_digest_class = OpenSSL::Digest::SHA256 # SHA1 by default 9 end 10 11 register "encrypted_attributes", ROM::EncryptedAttribute 12 end 13end