cascade_callbacks doesn't work for second level children

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              ghiblin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: