[Nitro] injecting Og functionality

Brian Davis brian.william.davis at gmail.com
Wed Mar 14 15:22:58 EDT 2007


On Wed, 14 Mar 2007 20:42:08 +0200
"George Moschovitis" <george.moschovitis at gmail.com> wrote:

> I plan to refactor this over the following days. I don't like
> 
> class MyObject < Og::Model
> end
> 
> at all...
> 
> if needed I amy use something like
> 
> class MyObject
>   is Model
> end
> 
> but would really like to keep the current
> 
> class MyObject
> end
> 
> I am pretty sure I can refactor the code and keep the current
> interface. I am a lot more familar with Ruby meta programming theses
> days. Plus, we have Tom (Trans) on the team :)
> 
> 
> -g.
> 
> 

I really liked transfire's recommendation (i.e. "is Persisted"), but I
certainly also like the hands-off beauty of not needing to specify that
a class is managed by Og. 

However, it would be necessary to have both, since I can think of a
couple of cases where the magical enchanting powers of Og wouldn't
catch a class because it doesn't have direct relations with other
classes. 

My 2 pence. 

-- 
Brian Davis

Project Manager
FreezeCrowd, Inc.


More information about the Nitro-general mailing list