Omit hash value in question methods
This commit is contained in:
parent
4f4e6c83a1
commit
bdb637047b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue