1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Improved indentation

This commit is contained in:
Pratik Naik 2010-09-06 11:52:42 +01:00
parent 0a7b481903
commit 3bd3e992ff

View file

@ -317,13 +317,9 @@ module ActiveRecord
end
def where_values_hash
Hash[@where_values.find_all { |w|
w.respond_to?(:operator) && w.operator == :==
}.map { |where|
[where.operand1.name,
where.operand2.respond_to?(:value) ?
where.operand2.value : where.operand2]
}]
Hash[@where_values.find_all {|w| w.respond_to?(:operator) && w.operator == :== }.map {|where|
[where.operand1.name, where.operand2.respond_to?(:value) ? where.operand2.value : where.operand2]
}]
end
def scope_for_create