Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 08312e9958b84de9aef07ba157eed04750567da4 1 parent 5565bab
@lifo lifo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation.rb
View
2  activerecord/lib/active_record/relation.rb
@@ -69,7 +69,7 @@ def on(join)
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
Please sign in to comment.
Something went wrong with that request. Please try again.