Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1314

Remove Old Composite Key Support

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None

      Description

      With the upcoming changes to allow the _id field to be redefined in the standard field syntax we no longer need to support the composite key functionality. This is much better left to the application level anyways. For those using composite keys they will simply just need to change to the following syntax:

      field :_id, type: String, default: -> { ... my logic here }
      

      Defaults are now applied after all the attributes are set so this now should be a trivial change. This also allows for some cleanup of the hackish code around this area, and the nasty string inflections Mongoid has.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              durran Durran Jordan
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: