From bdb637047bfca347f6b193556a2f5f62a67ebd90 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 24 Jul 2022 22:27:15 +0200 Subject: [PATCH] Omit hash value in question methods --- app/models/user/question_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user/question_methods.rb b/app/models/user/question_methods.rb index 1c52f660..0ff0db4f 100644 --- a/app/models/user/question_methods.rb +++ b/app/models/user/question_methods.rb @@ -7,7 +7,7 @@ module User::QuestionMethods def ordered_questions(author_is_anonymous: nil, direct: nil) questions - .where({ author_is_anonymous: author_is_anonymous, direct: direct }.compact) + .where({ author_is_anonymous:, direct: }.compact) .order(:created_at) .reverse_order end