Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple plugin for saving marshaled objects using ActiveRecord.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 marshaled_attributes.gemspec
README.rdoc

Marshaled Attributes

Save marshaled objects using ActiveRecord.

Instalation

gem install marshaled_attributes

Usage

Considering the following schema:

create_table :pages do |t|
  t.string 	:name
  t.text 	:body
  t.binary 	:meta
end

Add the method call marshaled to your model.

class Page < ActiveRecord::Base
  marshaled :meta
end

@page = Page.new(:meta => {:last_comment_id => 100})
@page.meta
#=> {:last_comment_id => 100}

Copyright © 2008 Nando Vieira, released under the MIT license

Something went wrong with that request. Please try again.