Method: CipherAble#cipher
- Defined in:
- lib/app/models/concerns/cipher_able.rb
#cipher ⇒ Object
Get the cipher directly
39 40 41 42 |
# File 'lib/app/models/concerns/cipher_able.rb', line 39 def cipher generate_key if secret_key.blank? ActiveSupport::MessageEncryptor.new(secret_key.data) end |