diff options
author | Matthew Draper <matthew@trebex.net> | 2015-09-07 00:10:50 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-09-07 00:10:50 +0930 |
commit | e07b006d9c7b0a57c350d918259176089d6dedd6 (patch) | |
tree | 4a10983dc01217aee4c8f2e620fd3d77fcea8927 /activerecord/test/models/topic.rb | |
parent | bc1f0c2e36ee705023dcbd513d99f834f8262ea3 (diff) | |
parent | c82c5f8ffd7291186235c5912151c9dc0d262c4a (diff) | |
download | rails-e07b006d9c7b0a57c350d918259176089d6dedd6.tar.gz rails-e07b006d9c7b0a57c350d918259176089d6dedd6.tar.bz2 rails-e07b006d9c7b0a57c350d918259176089d6dedd6.zip |
Merge pull request #21505 from morgoth/deprecate-passing-conditions-to-destroy_all-and-delete_all
Deprecate passing conditions to AR::Relation destroy_all and delete_all methods
Diffstat (limited to 'activerecord/test/models/topic.rb')
-rw-r--r-- | activerecord/test/models/topic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb index d17270021a..176bc79dc7 100644 --- a/activerecord/test/models/topic.rb +++ b/activerecord/test/models/topic.rb @@ -86,7 +86,7 @@ class Topic < ActiveRecord::Base end def destroy_children - self.class.delete_all "parent_id = #{id}" + self.class.where("parent_id = #{id}").delete_all end def set_email_address |