Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

There should be a nice DSL for self.default_repository_name #292

Description

@muescha

current (very undocumented):

def self.default_repository_name
  :alternate
end

whould be nice to have a DSL repository

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:

DataMapper.repository(:alternate) { 
  class Client
    include DataMapper::Resource

    property :id,   Serial
    property :name, String
  end
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions