Sha256: e9d74874876852cd985102874e83fde5ecdf6190f45876cdde271ae73e5d96fd
Contents?: true
Size: 365 Bytes
Versions: 4
Compression:
Stored size: 365 Bytes
Contents
require "sequel" module AttrKeyring module Sequel def self.included(target) AttrKeyring.setup(target) target.class_eval do def before_save super migrate_to_latest_encryption_key end def keyring_rotate! migrate_to_latest_encryption_key save end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
attr_keyring-0.5.2 | lib/attr_keyring/sequel.rb |
attr_keyring-0.5.1 | lib/attr_keyring/sequel.rb |
attr_keyring-0.5.0 | lib/attr_keyring/sequel.rb |
attr_keyring-0.4.0 | lib/attr_keyring/sequel.rb |