instance method
validate_config!
Ruby on Rails 8.1.2
Since v7.0.10 PrivateSignature
validate_config!()
No documentation comment.
Source
# 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
Defined in activerecord/lib/active_record/encryption/scheme.rb line 83
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::Scheme