On Sun, Jan 11, 2009 at 9:07 PM, whoismario <[email protected]> wrote:
>
> Is there an appropriate class or module I can open up so that I don't
> have to create a custom module and then explicitly include or extend
> it in each model in my project?

You could make a module that includes DataMapper::Resource, and
include that in each of your models instead.  Alternatively, you could
override DM::Resource.included to also include your new module.  The
first way seems far preferable to me.  Very straightforward and
explicit.

Pat

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to