benpickles / contentz
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (2)
- Wiki (1)
- Graphs
-
Tree:
a4f0504
commit a4f05049d396235fa54e1c47db262eefc3a0f6f8
tree 9adfc504ec5e4af55b3895b05bc0d74f5002c8e8
parent 923387bba7e756a9df865be6a8c0fcaed3d7d5f8
tree 9adfc504ec5e4af55b3895b05bc0d74f5002c8e8
parent 923387bba7e756a9df865be6a8c0fcaed3d7d5f8
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.

