Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dm-is-serialized

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dm-is-serialized

  • 0.9.10
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

h1. About

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

h1. 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

h1. Filters

FAQs

Package last updated on 02 Jan 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc