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

cascade_callbacks doesn't work for second level children

      Hi, in my situation I have

      class GranParent
      include Mongoid::Document

      embeds_many :parents, cascade_callbacks: true
      end

      class Parent
      include Mongoid::Document

      embeds_many :children, cascade_callbacks: true
      end

      class Child
      include Mongoid::Document

      mount_uploader :image, ImageUploader

      embedded_in :parent
      end

      When I change a Child through GranParent without changing Parent, Mongoid doesn't fire callbacks on Child. Any idea how to work around?

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

              Created:
              Updated:
              Resolved: