From 498fddc714f66d5f6f9152910853ce355f059397 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sat, 2 Jan 2010 03:20:52 +0530 Subject: Fix join string for the WHERE clause --- activerecord/lib/active_record/relation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index 6a1237cdd1..8756695d46 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -166,7 +166,7 @@ module ActiveRecord end end - def where_clause(join_string = "\n\tAND ") + def where_clause(join_string = " AND ") @relation.send(:where_clauses).join(join_string) end -- cgit v1.2.3