diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-06 13:29:17 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-06 13:29:17 -0700 |
commit | bbc42ff03d60fca1d51791399ae7041fa20e4185 (patch) | |
tree | 37d75d9a73ebc9e4091c4d5520083eaa79556138 | |
parent | 389c4fc2582ae42c32a20b7f6a6cb2c5680343fc (diff) | |
download | rails-bbc42ff03d60fca1d51791399ae7041fa20e4185.tar.gz rails-bbc42ff03d60fca1d51791399ae7041fa20e4185.tar.bz2 rails-bbc42ff03d60fca1d51791399ae7041fa20e4185.zip |
removing a fancy map
-rw-r--r-- | lib/arel/algebra/predicates.rb | 4 |
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 |