mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Improved indentation
This commit is contained in:
parent
0a7b481903
commit
3bd3e992ff
1 changed files with 3 additions and 7 deletions
|
@ -317,12 +317,8 @@ module ActiveRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def where_values_hash
|
def where_values_hash
|
||||||
Hash[@where_values.find_all { |w|
|
Hash[@where_values.find_all {|w| w.respond_to?(:operator) && w.operator == :== }.map {|where|
|
||||||
w.respond_to?(:operator) && w.operator == :==
|
[where.operand1.name, where.operand2.respond_to?(:value) ? where.operand2.value : where.operand2]
|
||||||
}.map { |where|
|
|
||||||
[where.operand1.name,
|
|
||||||
where.operand2.respond_to?(:value) ?
|
|
||||||
where.operand2.value : where.operand2]
|
|
||||||
}]
|
}]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue