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

Remove Old Composite Key Support

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None

      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.

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

              Created:
              Updated:
              Resolved: