method

compress

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: Encryptor
compress(data) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.