contentz¶ ↑
Contentz (pronounced “content zee”) is an ActiveRecord extension that uses Zlib to compress/uncompress attribute data on write/read.
Usage¶ ↑
Require the gem in config/environment.rb
:
Rails::Initializer.run do |config| config.gem 'benpickles-contentz', :lib => 'contentz', :source => 'http://gems.github.com' end
Use the contentz
method in any ActiveRecord model to apply compression to attribute(s):
class Article < ActiveRecord::Base contentz :body end
Copyright¶ ↑
Copyright © 2009 Ben Pickles. See LICENSE for details.