current (very undocumented): ``` ruby def self.default_repository_name :alternate end ``` whould be nice to have a DSL `repository` ``` ruby class Client include DataMapper::Resource repository :alternate property :id, Serial property :name, String end ``` and a `DataMapper.repository` block should also set the default repository name: ``` ruby DataMapper.repository(:alternate) { class Client include DataMapper::Resource property :id, Serial property :name, String end } ```
current (very undocumented):
whould be nice to have a DSL
repositoryand a
DataMapper.repositoryblock should also set the default repository name: