-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
Take the following case:
class Band include Mongoid::Document embeds_many :labels end class Label include Mongoid::Document field :name, type: String embedded_in :band end Band.delete_all label = Label.new(name: "Neil") b = Band.create! b.labels << label b.labels.clear b.labels << label b.reload b.labels # []
- is related to
-
MONGOID-5206 Reloading retains stale changed value
- Closed