module ActiveEncryption::Encryptable
The ActiveEncryption::Encryptable
encapsulates methods and classes to make a model attribute encryptable.
Usage:
class MyModel extend ActiveEncryption::Encryptable encrypted_attr :my_attribute end
Public Instance Methods
encrypted_attr(attribute_name, options = {})
click to toggle source
# File lib/active_encryption/encryptable.rb, line 17 def encrypted_attr(attribute_name, options = {}) include InstanceMethodsOnActivation.new(attribute_name, options) end
encryption_setting()
click to toggle source
:reek: UtilityFunction should be ok for ClassMethod modules?
# File lib/active_encryption/encryptable.rb, line 22 def encryption_setting config = ActiveEncryption.config store = config.encryption_setting_store id = config.default_encryption_setting_id store.find(id) end