AR has a subclass of AM:PresenceValidator.
This allows us to mark the parent object as invalid if all associated objects in a presence validated association are marked for destruction. See: https://github.com/rails/rails/issues/6812
Showing
想要评论请 注册 或 登录