mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Return a new relation when blank is supplied to relation.joins
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user