aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/querying.rb
diff options
context:
space:
mode:
authorAbhay Nikam <nikam.abhay1@gmail.com>2019-02-18 21:42:09 +0530
committerAbhay Nikam <nikam.abhay1@gmail.com>2019-02-19 16:57:49 +0530
commit5c8d4c3466cbfa850a89f718ec358ed3a352c34e (patch)
treee5629e9d01480426fd8ee1599fbd4efc8564b28c /activerecord/lib/active_record/querying.rb
parent84bd9adafde36d0192849649b86ffcd4e59e5e11 (diff)
downloadrails-5c8d4c3466cbfa850a89f718ec358ed3a352c34e.tar.gz
rails-5c8d4c3466cbfa850a89f718ec358ed3a352c34e.tar.bz2
rails-5c8d4c3466cbfa850a89f718ec358ed3a352c34e.zip
Introduce delete_by and destroy_by methods to ActiveRecord::Relation
Diffstat (limited to 'activerecord/lib/active_record/querying.rb')
-rw-r--r--activerecord/lib/active_record/querying.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/querying.rb b/activerecord/lib/active_record/querying.rb
index 2a27f53f06..07e461ab88 100644
--- a/activerecord/lib/active_record/querying.rb
+++ b/activerecord/lib/active_record/querying.rb
@@ -7,7 +7,7 @@ module ActiveRecord
delegate :first_or_create, :first_or_create!, :first_or_initialize, to: :all
delegate :find_or_create_by, :find_or_create_by!, :create_or_find_by, :create_or_find_by!, :find_or_initialize_by, to: :all
delegate :find_by, :find_by!, to: :all
- delegate :destroy_all, :delete_all, :update_all, to: :all
+ delegate :destroy_all, :delete_all, :update_all, :delete_by, :destroy_by, to: :all
delegate :find_each, :find_in_batches, :in_batches, to: :all
delegate :select, :group, :order, :except, :reorder, :limit, :offset, :joins, :left_joins, :left_outer_joins, :or,
:where, :rewhere, :preload, :eager_load, :includes, :from, :lock, :readonly, :extending,