Module: AttrCipher::ClassMethods

Defined in:
lib/attr_cipher/attr_cipher.rb

Instance Method Summary collapse

Instance Method Details

#attr_cipher(*args, secret: AttrCipher.secret, cipher: AttrCipher.cipher, serialize: false) ⇒ Object



20
21
22
23
24
# File 'lib/attr_cipher/attr_cipher.rb', line 20

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