As DataMapper describes multi-store connections, there are 3 ways to
use it: (of course i tested the repositories configuration and there
is no problem with that)
1. Block style
repository(:key) { ... run something ... }
2. Class-level definition
class DbObject
include DataMapper::Resource
def self.default_repository_name
:key
end
end
3. Operation-level
class DbObject
include DataMapper::Resource
property :id, Serial
end
@list = DbObject.all(:repository => repository(:key))
--------------------
Both 1 and 3 methods are working fine, but it kinda stupid always to
specify the repository. Definitions in method 2 just ignored for some
reason.
Any ideas how to fix that ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---