Boolean indicating whether
records should be compressed before encryption. Defaults to true.
:compressor
The compressor to use. It must respond to deflate and
inflate. If not provided, will default to
+ActiveRecord::Encryption.config.compressor+, which itself defaults to
Zlib.
# File activerecord/lib/active_record/encryption/encryptor.rb, line 27
def initialize(compress: true, compressor: nil)
@compress = compress
@compressor = compressor || ActiveRecord::Encryption.config.compressor
end