Skip to content

botanicus/dm-is-serialized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages