diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 69724ebeeb..038b18079d 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -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 |