mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
drying up joins()
This commit is contained in:
@@ -63,10 +63,8 @@ module ActiveRecord
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user