diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 15:53:04 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 15:53:04 -0800 |
commit | fe522f79c772c915efc88a8476fa69a503955967 (patch) | |
tree | ea29d20afed8845031349362f41d4465bff98bcf /activerecord | |
parent | ae6033331fe78cf5b3af04e1f6f930b98ddab66f (diff) | |
download | rails-fe522f79c772c915efc88a8476fa69a503955967.tar.gz rails-fe522f79c772c915efc88a8476fa69a503955967.tar.bz2 rails-fe522f79c772c915efc88a8476fa69a503955967.zip |
we already know it is already an array, so we do not need to make really really sure it is an array
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index 8d0d99a125..45fc3c20c2 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -339,7 +339,7 @@ module ActiveRecord when Relation other.to_sql == to_sql when Array - to_a == other.to_a + to_a == other end end |