Module: AttrCipher::ClassMethods
- Defined in:
- lib/attr_cipher/attr_cipher.rb
Instance Method Summary collapse
- #attr_cipher(*args, secret: AttrCipher.secret, cipher: AttrCipher.cipher, serialize: false) ⇒ Object
Instance Method Details
#attr_cipher(*args, secret: AttrCipher.secret, cipher: AttrCipher.cipher, serialize: false) ⇒ Object
27 28 29 30 31 |
# File 'lib/attr_cipher/attr_cipher.rb', line 27 def attr_cipher(*args, secret: AttrCipher.secret, cipher: AttrCipher.cipher, serialize: false) args.each do |attribute| define_cipher_attribute(attribute, secret, cipher, serialize) end end |