Relation field raises exception if any related object is deleted


(Aaron Russell) #1

If a relation field is used with multiple: true then if any one of the relations if deleted the field returns a ActiveRecord::RecordNotFound exception.

This is because .find() is used, where for arrays it should use .where(id: ids).


(Aaron Russell) #2

Fixed with this commit:


(Aaron Russell) #3