File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
activerecord/lib/active_record/encryption Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,8 @@ class Encryptor
18
18
#
19
19
# * <tt>:compress</tt> - Boolean indicating whether records should be compressed before encryption.
20
20
# Defaults to +true+.
21
- # * <tt>:compressor</tt> - The compressor to use.
22
- # 1. If compressor is provided, it will be used.
23
- # 2. If not, it will use +ActiveRecord::Encryption.config.compressor+, which default value is +Zlib+.
24
- # If you want to use a custom compressor, it must respond to +deflate+ and +inflate+.
21
+ # * <tt>:compressor</tt> - The compressor to use. It must respond to +deflate+ and +inflate+.
22
+ # If not provided, will default to +ActiveRecord::Encryption.config.compressor+, which itself defaults to +Zlib+.
25
23
def initialize ( compress : true , compressor : nil )
26
24
@compress = compress
27
25
@compressor = compressor || ActiveRecord ::Encryption . config . compressor
You can’t perform that action at this time.
0 commit comments