method

new

new(compress: true, compressor: nil)
public

Options

:compress

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.