Method: Mongoid::Fields::Encrypted#key_name_field

Defined in:
lib/mongoid/fields/encrypted.rb

#key_name_fieldString | nil

Returns The name of the field that contains the key alt name to use for encryption; if not specified, nil is returned.

Returns:

  • (String | nil)

    The name of the field that contains the key alt name to use for encryption; if not specified, nil is returned.



31
32
33
# File 'lib/mongoid/fields/encrypted.rb', line 31

def key_name_field
  @encryption_options[:key_name_field]
end