method
new
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::Encryption::Encryptor
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.
-
If compressor is provided, it will be used.
-
If not, it will use ActiveRecord::Encryption.config.compressor which default value is Zlib.
If you want to use a custom compressor, it must respond to deflate and inflate.
-