Skip to content
Browse files

Improved indentation

  • Loading branch information...
1 parent 0a7b481 commit 3bd3e992ffa84242b472d80843b2d3d2c3c7ab8c @lifo lifo committed Sep 6, 2010
Showing with 3 additions and 7 deletions.
  1. +3 −7 activerecord/lib/active_record/relation.rb
View
10 activerecord/lib/active_record/relation.rb
@@ -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

0 comments on commit 3bd3e99

Please sign in to comment.
Something went wrong with that request. Please try again.