Skip to content
This repository
Browse code

Merge pull request #2450 from guilleiguaran/activesupport-gzip-1.8

Fix ActiveSupport::Gzip under Ruby 1.8.7. Closes #2416
  • Loading branch information...
commit 65a648be10148a8a616b28464763bd0e71635429 1 parent e0b0da2
Santiago Pastorino authored
3  activesupport/lib/active_support/gzip.rb
... ...
@@ -1,5 +1,6 @@
1 1
 require 'zlib'
2 2
 require 'stringio'
  3
+require 'active_support/core_ext/string/encoding'
3 4
 
4 5
 module ActiveSupport
5 6
   # A convenient wrapper for the zlib standard library that allows compression/decompression of strings with gzip.
@@ -26,4 +27,4 @@ def self.compress(source)
26 27
       output.string
27 28
     end
28 29
   end
29  
-end
  30
+end

0 notes on commit 65a648b

Please sign in to comment.
Something went wrong with that request. Please try again.