module ActiveCrypto
Constants
- VERSION
Public Instance Methods
encrypt(attribute, options = {})
click to toggle source
# File lib/active_crypto.rb, line 13 def encrypt(attribute, options = {}) # setup encryptor = ActiveCrypto::Encryptor.new(attribute, options) # hooks before_save(encryptor) after_save(encryptor) after_find(encryptor) define_method(:after_find) { } end
encryption_key()
click to toggle source
# File lib/active_crypto.rb, line 23 def encryption_key Rails.application.secrets.secret_key_base end