class RuboCop::Cop::Rails::WhereExists

def build_good_method_where(args, dot_source)

def build_good_method_where(args, dot_source)
  if args.size > 1
    "where(#{args.map(&:source).join(', ')})#{dot_source}exists?"
  else
    "where(#{args[0].source})#{dot_source}exists?"
  end
end