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

string IDs stored for related documents created via form params

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 12_01_17
    • Component/s: None
    • Labels:

      Description

      on Mongoid beta 14 so objectIDs should be used everywhere now. when i submit a form with params for related documents the IDs are created as strings instead of ObjectIDs, which breaks the relational associations

      see the example code here along with the post details and rails console showing the broken relationship: http://gist.github.com/498876

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nader Nader Akhnoukh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: