method
replace
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::Associations::CollectionAssociation
replace(other_array)public
Replace this collection with other_array. This will perform a diff and delete/add only records that have changed.