Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 65a648be10148a8a616b28464763bd0e71635429 1 parent e0b0da2
@spastorino spastorino authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.