instance method
compress
Ruby on Rails 7.1.6
Since v7.0.10 PrivateSignature
compress(data)
No documentation comment.
Parameters
-
datareq
Source
# File activerecord/lib/active_record/encryption/encryptor.rb, line 122
def compress(data)
Zlib::Deflate.deflate(data).tap do |compressed_data|
compressed_data.force_encoding(data.encoding)
end
end
Defined in activerecord/lib/active_record/encryption/encryptor.rb line 122
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::Encryptor