Christian,

If your question was if namespaced models are possible to do with DM
then the answer is yes! Just define them as you would. When relating
your models using belongs_to and has you can use :model => 'Foo::Post'
(that is on 0.10.0) and :class_name => 'Foo::Post' on 0.9.11.

cheers
snusnu

2009/8/15 Christian Hoeppner <[email protected]>:
> Hey there,
>
> A while of google got little more than a vague mention to namespaced
> models. I'm working on a merb app that's starting to grow considerably
> in model number, and I'd really like to use Forum::Post and Blog::Post
> instead of ForumPost and BlogPost. This might just be a use case for
> slices, but I've been curious about models in modules for a while, so I
> thought I'd ask.
>

--~--~---------~--~----~------------~-------~--~----~
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