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

Lazy loading fails on some occasions

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

      I'm writing a relatively large project right now and got an error where I am having the following relations:

      Project
      belongs_to :user
      has_many :bubbles

      User
      has_many :projects
      has_many :bubbles

      Bubble
      belongs_to :user
      belongs_to :project

      In my ProjectsController I am loading a project (projects#show) and try to display it, it's bubbles and user info on one page (with partials). After project.bubbles is loaded all the "Bubbles" are not able to load the associated user.

      I stripped down my project and uploaded it: http://xnorfz.de/~halfdan/MyApp.tar.gz
      1. Untar the archive
      2. bundle
      3. rake db:seed
      4. rails s
      5. http://localhost:3000 and click on a project on the right side. => Error

            Assignee:
            durran Durran Jordan
            Reporter:
            halfdan Fabian Becker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: