aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-09-06 11:52:42 +0100
committerPratik Naik <pratiknaik@gmail.com>2010-09-06 11:54:02 +0100
commit3bd3e992ffa84242b472d80843b2d3d2c3c7ab8c (patch)
tree81b9b9ad178bb88c8fc1ee608e9d5a298ae6f0b5 /activerecord
parent0a7b481903b30fb8f533afb2bcc0e6dc202033fc (diff)
downloadrails-3bd3e992ffa84242b472d80843b2d3d2c3c7ab8c.tar.gz
rails-3bd3e992ffa84242b472d80843b2d3d2c3c7ab8c.tar.bz2
rails-3bd3e992ffa84242b472d80843b2d3d2c3c7ab8c.zip
Improved indentation
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/relation.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb
index b7ed81c300..c678ef3bcc 100644
--- a/activerecord/lib/active_record/relation.rb
+++ b/activerecord/lib/active_record/relation.rb
@@ -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