method

compress

compress(data)
private

No documentation available.

# File activerecord/lib/active_record/encryption/encryptor.rb, line 138
        def compress(data)
          Zlib::Deflate.deflate(data).tap do |compressed_data|
            compressed_data.force_encoding(data.encoding)
          end
        end