No commit activity in last 3 years
No release in over 3 years
This plugin helps you to serialize your records into very short strings for storing in cookies.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

About

This plugin helps you to serialize your records into very short strings for storing in cookies.

Initialization

class Product
  include DataMapper::Resource
  property :id,   Serial
  property :name, String
end

class OrderItem
  include DataMapper::Resource
  is :serialized
  has 1, :product
  property :id,    Serial
  property :name,  String
  property :count, Integer, :default => 1
  property :used,  Boolean, :default => false
  property :note,  Text
  serialize_properties :count, :note # GeneralSerializeFilter is default value
  serialize_property :product, ModelSerializeFilter
  serialize_property :used, BooleanSerializeFilter
end

Filters