diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 19:15:05 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 19:15:05 +0530 |
commit | c6258ee313653bc54e94e0008f1c098ed68aa3f4 (patch) | |
tree | 98cb7b207f385790183ddd953f0183b667e13765 /activerecord/lib | |
parent | 9a9f97af2815469e6f28dee9b88577251ef1b832 (diff) | |
download | rails-c6258ee313653bc54e94e0008f1c098ed68aa3f4.tar.gz rails-c6258ee313653bc54e94e0008f1c098ed68aa3f4.tar.bz2 rails-c6258ee313653bc54e94e0008f1c098ed68aa3f4.zip |
Ensure all the finder methods respect scoping
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 3c41d16f63..b6d73265a8 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -651,7 +651,7 @@ module ActiveRecord #:nodoc: end end - delegate :select, :group, :order, :limit, :joins, :where, :preload, :eager_load, :to => :arel_table + delegate :select, :group, :order, :limit, :joins, :where, :preload, :eager_load, :to => :scoped # A convenience wrapper for <tt>find(:first, *args)</tt>. You can pass in all the # same arguments to this method as you can to <tt>find(:first)</tt>. |