Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

drying up joins()

  • Loading branch information...
commit 7ddf663c756a572ad164120ce45db6a5b1ec7e80 1 parent 41e0f68
Aaron Patterson tenderlove authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 activerecord/lib/active_record/relation/query_methods.rb
6 activerecord/lib/active_record/relation/query_methods.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.