Container of configuration options

Methods

Attributes

[RW] add_to_filter_parameters
[RW] deterministic_key
[RW] encrypt_fixtures
[RW] excluded_from_filter_parameters
[RW] extend_queries
[RW] forced_encoding_for_deterministic_encryption
[RW] key_derivation_salt
[RW] previous_schemes
[RW] primary_key
[RW] store_key_references
[RW] support_unencrypted_data
[RW] validate_column_size

Class Public methods

new()

# File activerecord/lib/active_record/encryption/config.rb, line 11
def initialize
  set_defaults
end

Instance Public methods

previous=(previous_schemes_properties)

Configure previous encryption schemes.

config.active_record.encryption.previous = [ { key_provider: MyOldKeyProvider.new } ]
# File activerecord/lib/active_record/encryption/config.rb, line 18
def previous=(previous_schemes_properties)
  previous_schemes_properties.each do |properties|
    add_previous_scheme(**properties)
  end
end