method
validate_config!
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::Encryption::Scheme
validate_config!()private
No documentation available.
# File activerecord/lib/active_record/encryption/scheme.rb, line 83
def validate_config!
raise Errors::Configuration, "ignore_case: can only be used with deterministic encryption" if @ignore_case && !@deterministic
raise Errors::Configuration, "key_provider: and key: can't be used simultaneously" if @key_provider_param && @key
raise Errors::Configuration, "compressor: can't be used with compress: false" if !@compress && @compressor
raise Errors::Configuration, "compressor: can't be used with encryptor" if @compressor && @context_properties[:encryptor]
end