Skip to content
A simple plugin for saving marshaled objects using ActiveRecord.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
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.