Skip to content

Commit

Permalink
Improved indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Sep 6, 2010
1 parent 0a7b481 commit 3bd3e99
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions activerecord/lib/active_record/relation.rb
Expand Up @@ -317,13 +317,9 @@ def to_sql
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
Expand Down

0 comments on commit 3bd3e99

Please sign in to comment.