Repository is archived
No commit activity in last 3 years
No release in over 3 years
Save marshaled objects using ActiveRecord
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0.0
 Project Readme

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