module EncryptedStore::ActiveRecord
Public Class Methods
new_key(custom_key = nil)
click to toggle source
# File lib/encrypted_store/active_record.rb, line 14 def new_key(custom_key = nil) EncryptionKey.new_key(custom_key) if Mixin.descendants? end
preload_keys(amount)
click to toggle source
Preloads the most recent `amount` keys.
# File lib/encrypted_store/active_record.rb, line 10 def preload_keys(amount) EncryptionKey.preload(amount) if Mixin.descendants? end
retire_keys(key_ids = [])
click to toggle source
# File lib/encrypted_store/active_record.rb, line 18 def retire_keys(key_ids = []) EncryptionKey.retire_keys(key_ids) if Mixin.descendants? end
rotate_keys()
click to toggle source
# File lib/encrypted_store/active_record.rb, line 22 def rotate_keys EncryptionKey.rotate_keys if Mixin.descendants? end