Contentz (pronounced "content zee") is an ActiveRecord extension that uses Zlib to compress/uncompress attribute data on write/read.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION.yml
contentz.gemspec

README.rdoc

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.