method
clear
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::Associations::CollectionProxy
clear()public
Equivalent to delete_all. The difference is that returns self, instead of an array with the deleted objects, so methods can be chained. See delete_all for more information.