diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-02 03:20:52 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-02 03:20:52 +0530 |
commit | 498fddc714f66d5f6f9152910853ce355f059397 (patch) | |
tree | 56bf66d6aefe403dfc8c0c78f5b7c122338a1e23 | |
parent | 689984ddd3a482b5c0986fdf1889323f096050fa (diff) | |
download | rails-498fddc714f66d5f6f9152910853ce355f059397.tar.gz rails-498fddc714f66d5f6f9152910853ce355f059397.tar.bz2 rails-498fddc714f66d5f6f9152910853ce355f059397.zip |
Fix join string for the WHERE clause
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |