diff options
author | Filip H.F. "FiXato" Slagter <fixato@gmail.com> | 2008-10-30 11:40:09 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-01-28 19:50:55 +0000 |
commit | a0d8202bb9fa55c328a3170836b0cddb40631e83 (patch) | |
tree | f3f7da237b473f7408780550c31b4d47c7463316 /activerecord/lib | |
parent | f725b1971072a2203d6d433149730289cbb80128 (diff) | |
download | rails-a0d8202bb9fa55c328a3170836b0cddb40631e83.tar.gz rails-a0d8202bb9fa55c328a3170836b0cddb40631e83.tar.bz2 rails-a0d8202bb9fa55c328a3170836b0cddb40631e83.zip |
Ensure whitespaces are stripped when merging string joins. [#1297 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 479296ebae..0efccb66ee 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1715,7 +1715,7 @@ module ActiveRecord #:nodoc: end join end - joins.flatten.uniq + joins.flatten.map{|j| j.strip}.uniq else joins.collect{|j| safe_to_array(j)}.flatten.uniq end |