-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
When embeds_many :items
When accept_nested_attributes :items, allow_destroy: true
When validates_presence_of :items
When we passed attributes to update_attributes {:items_attributes => [
{'_id' => someting_id, :_destroy => true}]} (and it is the only one element in relation), validation fails, but document removed from relation.
- is duplicated by
-
MONGOID-2984 presence validator only applies on second save.
- Closed