1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Updating sample code on ActiveRecord#before_destroy callback [ci skip]

It was executing a delete_all method with wrong parameter
This commit is contained in:
Espartaco Palma 2018-10-31 23:18:27 -07:00
parent f98901c290
commit 676b0960bc
No known key found for this signature in database
GPG key ID: E267187D075D3405

View file

@ -95,7 +95,7 @@ module ActiveRecord
#
# private
# def delete_parents
# self.class.delete_all "parent_id = #{id}"
# self.class.where(parent_id: id).delete_all
# end
# end
#