Project

contentz

0.0
No commit activity in last 3 years
No release in over 3 years
Contentz (pronounced "content zee") is an ActiveRecord extension that uses Zlib to compress/uncompress attribute data on write/read.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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 © 2009 Ben Pickles. See LICENSE for details.