Module: ActiveRecordEncryption::EncryptedAttribute::ClassMethods

Defined in:
lib/active_record_encryption/encrypted_attribute.rb

Instance Method Summary collapse

Instance Method Details

#encrypted_attribute(name, subtype, **options) ⇒ Object



8
9
10
# File 'lib/active_record_encryption/encrypted_attribute.rb', line 8

def encrypted_attribute(name, subtype, **options)
  attribute(name, :encryption, **options, subtype: subtype)
end