Great! Thats exactly what i was looking for.
Thanks a lot.

On 16 Nov., 11:28, kristian <[EMAIL PROTECTED]> wrote:
> if you add
>
> def self.default_repository_name
>     :remote
> end
>
> in your Book model.
>
> regards Kristian
>
> On Nov 16, 1:51 am, Senny <[EMAIL PROTECTED]> wrote:
>
> > Hey there
>
> > I would like to change the default repository for only one model. That
> > i don't have to specify the repository for each lookop
>
> > # This call should take the :remote repository not the :default
> > Book.all(:title.like => 'DataMapper rocks')
>
> > I havn't found any documentation regarding this problem. is this
> > possible?
>
> > regards
> > senny
--~--~---------~--~----~------------~-------~--~----~
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