Skip to content

Use document_type instead of couchrest-type by default #3

Description

@tapajos

Issue from: http://github.com/couchrest/couchrest/issues#issue/25

Documents should not know about "driver" and store odd fields like couchrest-type. IIRC it was already discussed several months ago, but unfortunately I can not find a thread. The idea:

  • Use document_type field name by default
  • Use global ExtendedDocument.set_inheritance_field "couchrest-type" for legacy
  • Use ExtendedDocument.set_inheritance_field in any class

My fork http://github.com/wildchild/couchrest/commits/document_type

Related ticket: http://jchris.lighthouseapp.com/projects/17807/tickets/22-lets-use-couchrest_type

Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions