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:
parent
f98901c290
commit
676b0960bc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue