mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:39:53 +01:00
Omit hash value in question methods
This commit is contained in:
parent
4f4e6c83a1
commit
bdb637047b
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue