Method: ActiveRecord::Encryption::Encryptor#compress
- Defined in:
- activerecord/lib/active_record/encryption/encryptor.rb
#compress(data) ⇒ Object (private)
144 145 146 147 148 |
# File 'activerecord/lib/active_record/encryption/encryptor.rb', line 144 def compress(data) @compressor.deflate(data).tap do |compressed_data| compressed_data.force_encoding(data.encoding) end end |