-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
With the following
class Example include Mongoid::Document embeds_many embedded_examples end class EmbeddedExample include Monoigd::Document embedded_in example after :create do # Do something end end
And then doing
example = Example.create example.embedded_examples << EmbeddedExample.new
Then
example.embedded_examples = example.embedded_examples
The after_create callback in EmbeddedExample should only invoked once.