diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2013-11-02 19:45:03 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2013-11-02 19:45:03 -0700 |
commit | 661637e5b64dc1c277beb927059824ce4848ebab (patch) | |
tree | 94f759ebca81e354a12933f5e64e6124aeb1153e /activerecord/lib | |
parent | fe9773414a29317ac8fa6c0c911bb88eb2819f40 (diff) | |
download | rails-661637e5b64dc1c277beb927059824ce4848ebab.tar.gz rails-661637e5b64dc1c277beb927059824ce4848ebab.tar.bz2 rails-661637e5b64dc1c277beb927059824ce4848ebab.zip |
Delegate #rewhere to all on the class like all other relation methods
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/querying.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/querying.rb b/activerecord/lib/active_record/querying.rb index 6bee4f38e7..fd4c973504 100644 --- a/activerecord/lib/active_record/querying.rb +++ b/activerecord/lib/active_record/querying.rb @@ -7,7 +7,7 @@ module ActiveRecord delegate :destroy, :destroy_all, :delete, :delete_all, :update, :update_all, to: :all delegate :find_each, :find_in_batches, to: :all delegate :select, :group, :order, :except, :reorder, :limit, :offset, :joins, - :where, :preload, :eager_load, :includes, :from, :lock, :readonly, + :where, :rewhere, :preload, :eager_load, :includes, :from, :lock, :readonly, :having, :create_with, :uniq, :distinct, :references, :none, :unscope, to: :all delegate :count, :average, :minimum, :maximum, :sum, :calculate, to: :all delegate :pluck, :ids, to: :all |