aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/finder_methods.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2010-08-14 05:59:15 +0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-13 16:24:49 -0700
commita7eb8d97a44d65c68df2eed61a5375a8d8da32f1 (patch)
treed8fcd97bca363fcf83b1f14db46c29e601936090 /activerecord/lib/active_record/relation/finder_methods.rb
parent1f250415fe7ca2657f9d54a851e084b725c2e8ef (diff)
downloadrails-a7eb8d97a44d65c68df2eed61a5375a8d8da32f1.tar.gz
rails-a7eb8d97a44d65c68df2eed61a5375a8d8da32f1.tar.bz2
rails-a7eb8d97a44d65c68df2eed61a5375a8d8da32f1.zip
Removing most of the symbol to proc usage in Active Record
This will hopefully make Active Record run a bit more faster.
Diffstat (limited to 'activerecord/lib/active_record/relation/finder_methods.rb')
-rw-r--r--activerecord/lib/active_record/relation/finder_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb
index 0c75acf723..fc6728bd18 100644
--- a/activerecord/lib/active_record/relation/finder_methods.rb
+++ b/activerecord/lib/active_record/relation/finder_methods.rb
@@ -348,7 +348,7 @@ module ActiveRecord
end
def using_limitable_reflections?(reflections)
- reflections.none?(&:collection?)
+ reflections.none? { |r| r.collection? }
end
end