Skip to content
Browse files

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

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

0 comments on commit 65a648b

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