Skip to content

try to change DataMapper resource naming convention #8

@g8d3

Description

@g8d3

In models there is the line storage_names[:default] = 'patient', and so on, the idea is to see second title here, to create a rule that allows DataMapper to deduce table name from model class name, examples:

  1. I create class Patient in file patient/patient.rb the deduced table name should be patient (by default is patients)
  2. I create class Patient::Identifier in file patient/identifier.rb the deduced table name should be patient_identifier (by default is identifiers)

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