method

replace

rails latest stable - Class: ActiveRecord::Associations::AssociationCollection

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

replace(other_array)
public

Replace this collection with other_array This will perform a diff and delete/add only records that have changed.