aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-06 13:29:17 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-06 13:29:17 -0700
commitbbc42ff03d60fca1d51791399ae7041fa20e4185 (patch)
tree37d75d9a73ebc9e4091c4d5520083eaa79556138 /lib/arel
parent389c4fc2582ae42c32a20b7f6a6cb2c5680343fc (diff)
downloadrails-bbc42ff03d60fca1d51791399ae7041fa20e4185.tar.gz
rails-bbc42ff03d60fca1d51791399ae7041fa20e4185.tar.bz2
rails-bbc42ff03d60fca1d51791399ae7041fa20e4185.zip
removing a fancy map
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/algebra/predicates.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/algebra/predicates.rb b/lib/arel/algebra/predicates.rb
index e9fb51d889..2426aae396 100644
--- a/lib/arel/algebra/predicates.rb
+++ b/lib/arel/algebra/predicates.rb
@@ -32,8 +32,8 @@ module Arel
# * <tt>additional_operands</tt> - All possible right-hand operands
def self.build(operator, operand1, *additional_operands)
new(
- *additional_operands.uniq.inject([]) do |predicates, operand|
- predicates << operator.new(operand1, operand)
+ *additional_operands.uniq.map do |operand|
+ operator.new(operand1, operand)
end
)
end