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

Undefined Method valid? For Array

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      company references many employees stored as array
      validate associated employees

      trying to update the parent document, just changing the name of the document produces the following error. Although I'm not updating any employees related fields, if I comment the validate_associated :employees line, the update completes successfully.

      NoMethodError (undefined method `valid?' for #<Array:0x9792a58>)

            Assignee:
            Unassigned Unassigned
            Reporter:
            aja aja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: