Skip to content

Commit

Permalink
Return a new relation when blank is supplied to relation.joins
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Dec 27, 2009
1 parent 5565bab commit 08312e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08312e9

Please sign in to comment.