[Nitro] Og: Patch: Manage propertywise empty classes
George Moschovitis
george.moschovitis at gmail.com
Sun Jun 19 06:54:29 EDT 2005
> 1) User doesn't call property and doesn't get enchanted (with
> RelationMixins), therefore call to has_many doesn't succeed.
> 2) Neither class gets managed as they don't declare @__props, and if
> they did it would be empty.
> 3) It's not possible to explicitly declare class to be managed even if
> it's empty.
you can do the following:
class User < Entity # AR style
...
end
or
class User # better solution.
include EntityMixin
...
end
I should have documented this better...
However you idea with the 'managed' macro sounds interesting, perhaps
I should add this as an alternative.
However in most cases it is better to place a property macro in the
class to have it automatically managed...
regards,
George.
--
http://nitro.rubyforge.org
http://www.joy.gr
More information about the Nitro-general
mailing list