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

one sided references are not working anymore

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

      Prior to the current version, I was able to do this:

      has_one :author, inverse_of: nil, class_name: "User"

      And it worked fine. This was to do a one-sided has_one (ie, a one -> many relationship).

      Now, when doing the rspec test I get this error from the factory after I define the author:

      undefined method `show_id=' for #<User:0x007ffcaf719f40>

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

              Created:
              Updated:
              Resolved: