benpickles / contentz

Contentz (pronounced "content zee") is an ActiveRecord extension that uses Zlib to compress/uncompress attribute data on write/read.

This URL has Read+Write access

benpickles (author)
Sat Apr 18 02:26:05 -0700 2009
commit  a4f05049d396235fa54e1c47db262eefc3a0f6f8
tree    9adfc504ec5e4af55b3895b05bc0d74f5002c8e8
parent  923387bba7e756a9df865be6a8c0fcaed3d7d5f8
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.