This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
contentz /
| name | age | message | |
|---|---|---|---|
| |
.document | ||
| |
.gitignore | ||
| |
LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
VERSION.yml | ||
| |
contentz.gemspec | ||
| |
lib/ | ||
| |
test/ |
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.








