diff options
author | Ryan Bates <ryan@railscasts.com> | 2008-08-21 12:37:19 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-08-21 12:37:19 +0100 |
commit | 2415652660242d6b0da97119c562ecff82928575 (patch) | |
tree | e3df086ee9f4e7c564abf9c826fdb08f40746a69 /activerecord/lib | |
parent | 6be8251ec86b74b92e7bd922fafe9224281d2d26 (diff) | |
download | rails-2415652660242d6b0da97119c562ecff82928575.tar.gz rails-2415652660242d6b0da97119c562ecff82928575.tar.bz2 rails-2415652660242d6b0da97119c562ecff82928575.zip |
Support find_all on named scopes. [#730 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/named_scope.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb index 0902018155..26701548c2 100644 --- a/activerecord/lib/active_record/named_scope.rb +++ b/activerecord/lib/active_record/named_scope.rb @@ -103,7 +103,7 @@ module ActiveRecord attr_reader :proxy_scope, :proxy_options [].methods.each do |m| - unless m =~ /(^__|^nil\?|^send|^object_id$|class|extend|find|count|sum|average|maximum|minimum|paginate|first|last|empty?|any?|respond_to?)/ + unless m =~ /(^__|^nil\?|^send|^object_id$|class|extend|^find$|count|sum|average|maximum|minimum|paginate|first|last|empty?|any?|respond_to?)/ delegate m, :to => :proxy_found end end |