Return a new relation when blank is supplied to relation.joins

This commit is contained in:
Pratik Naik
2009-12-27 23:29:38 +05:30
parent 5565bab994
commit 08312e9958

View File

@@ -69,7 +69,7 @@ module ActiveRecord
end
def joins(join, join_type = nil)
return self if join.blank?
return create_new_relation if join.blank?
join_relation = case join
when String