Module: Familia::Features::EncryptedFields::ClassMethods
- Defined in:
- lib/familia/features/encrypted_fields.rb
Instance Method Summary collapse
-
#encrypted_field(name, aad_fields: []) ⇒ Object
Define an encrypted field.
Instance Method Details
#encrypted_field(name, aad_fields: []) ⇒ Object
Define an encrypted field
17 18 19 20 21 22 |
# File 'lib/familia/features/encrypted_fields.rb', line 17 def encrypted_field(name, aad_fields: [], **) require_relative 'encrypted_fields/encrypted_field_type' field_type = EncryptedFieldType.new(name, aad_fields: aad_fields, **) register_field_type(field_type) end |