[Nitro] Where to define Og relations

George Moschovitis george.moschovitis at gmail.com
Wed Oct 3 04:24:40 EDT 2007


>
> It's not clear to me if this is intended or not, has_many seems to work
> fine once "og" is required. I haven't checked the other types of
> relations.


This is known/intended. Are you sure that has_many works without defining a
serializable attribute first?
This is what I use:

class Word
  is Og::Model
  belongs_to :user
end


the shortcut is that calling attr_accessor :filed, Type automatically
includes Og::Model.


I hope this helps
-g.


-- 
http://gmosx.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20071003/d3863993/attachment.html 


More information about the Nitro-general mailing list