diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-26 17:23:13 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-26 17:23:13 -0700 |
commit | 4d625d6bd9b56907dcedf14590d0edd083260f0c (patch) | |
tree | 738f7ec9a044cd6233ddab75289ae74a950f6319 | |
parent | 07a803c9f607b938f004b4adb6fe9abbad6fc8c4 (diff) | |
download | rails-4d625d6bd9b56907dcedf14590d0edd083260f0c.tar.gz rails-4d625d6bd9b56907dcedf14590d0edd083260f0c.tar.bz2 rails-4d625d6bd9b56907dcedf14590d0edd083260f0c.zip |
PERF: symbol to proc is slow, lets remove it
-rw-r--r-- | lib/arel/algebra/relations/relation.rb | 2 |
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 |