aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/relation.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-26 17:23:13 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-26 17:23:13 -0700
commit4d625d6bd9b56907dcedf14590d0edd083260f0c (patch)
tree738f7ec9a044cd6233ddab75289ae74a950f6319 /lib/arel/algebra/relations/relation.rb
parent07a803c9f607b938f004b4adb6fe9abbad6fc8c4 (diff)
downloadrails-4d625d6bd9b56907dcedf14590d0edd083260f0c.tar.gz
rails-4d625d6bd9b56907dcedf14590d0edd083260f0c.tar.bz2
rails-4d625d6bd9b56907dcedf14590d0edd083260f0c.zip
PERF: symbol to proc is slow, lets remove it
Diffstat (limited to 'lib/arel/algebra/relations/relation.rb')
-rw-r--r--lib/arel/algebra/relations/relation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/algebra/relations/relation.rb b/lib/arel/algebra/relations/relation.rb
index b89abd5b8a..34d798837c 100644
--- a/lib/arel/algebra/relations/relation.rb
+++ b/lib/arel/algebra/relations/relation.rb
@@ -120,7 +120,7 @@ module Arel
}.each do |operation_name|
class_eval <<-OPERATION, __FILE__, __LINE__
def #{operation_name}(*arguments, &block)
- arguments.all?(&:blank?) && !block_given? ?
+ arguments.all? { |x| x.blank? } && !block_given? ?
self : #{operation_name.capitalize}.new(self, *arguments, &block)
end
OPERATION