[Nitro] help with og!

George Moschovitis george.moschovitis at gmail.com
Fri Nov 25 03:47:59 EST 2005


> Og relies on the property method to "enchant" a class and store it. I
> guess there is another more elegant way to do it, but I don't know it.
> I help this will be a help for you to start.


a more elegant way:

class MyClass < Og::Entity
  ...
end

or

class MyClass
  include Og::EntityMixin
  ...
end

if you have at least one property, there is nothing to add...

-g.


--
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list