mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:39:52 +01:00
13 lines
245 B
Ruby
13 lines
245 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Question::AnswerMethods
|
|
include CursorPaginatable
|
|
|
|
define_cursor_paginator :cursored_answers, :ordered_answers
|
|
|
|
def ordered_answers
|
|
answers
|
|
.order(:created_at)
|
|
.reverse_order
|
|
end
|
|
end
|