-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: 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?