Skip to content

Commit

Permalink
drying up joins()
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Sep 8, 2010
1 parent 41e0f68 commit 7ddf663
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions activerecord/lib/active_record/relation/query_methods.rb
Expand Up @@ -63,10 +63,8 @@ def reorder(*args)
def joins(*args)
relation = clone

if args.present?
args.flatten!
relation.joins_values += args if args.present?
end
args.flatten!
relation.joins_values += args unless args.blank?

relation
end
Expand Down

0 comments on commit 7ddf663

Please sign in to comment.