aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-01-20 20:40:20 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-01-20 20:40:20 +0530
commitf7d94cdc6d01617ff4579fda6a56a3e94be47ffe (patch)
treeda8541180f562e9c8a82c3ddf13554e8360b66ca /activerecord
parent1fb78e3ed8142782f19877a195f10b1828dd672c (diff)
downloadrails-f7d94cdc6d01617ff4579fda6a56a3e94be47ffe.tar.gz
rails-f7d94cdc6d01617ff4579fda6a56a3e94be47ffe.tar.bz2
rails-f7d94cdc6d01617ff4579fda6a56a3e94be47ffe.zip
Fix AP's AR integration tests warning
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/named_scope.rb2
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 d606934dce..ff6c041ef4 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -165,7 +165,7 @@ module ActiveRecord
end
def ==(other)
- other.respond_to?(:to_a) ? to_a == other.to_a : false
+ other.respond_to?(:to_ary) ? to_a == other.to_a : false
end
private