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) ⇒ Object



26
27
28
29
30
# File 'lib/attr_cipher/attr_cipher.rb', line 26

def attr_cipher(*args, secret: AttrCipher.secret, cipher: AttrCipher.cipher)
  args.each do |attribute|
    define_cipher_attribute(attribute, secret, cipher)
  end
end