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
11
12
13
# File 'lib/active_record_encryption/encrypted_attribute.rb', line 8

def encrypted_attribute(name, subtype, **options)
  name = name.to_s

  attribute(name, subtype, **options)
  decorate_encrypted_attribute(name)
end