mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:19:52 +01:00
ea0685136e
haha regexp go brrr special thanks to @seatsea for helping me out with the French locales
12 lines
304 B
Ruby
12 lines
304 B
Ruby
# frozen_string_literal: true
|
|
|
|
module List::TimelineMethods
|
|
include CursorPaginatable
|
|
|
|
define_cursor_paginator :cursored_timeline, :timeline
|
|
|
|
# @return [Array] the lists' timeline
|
|
def timeline
|
|
Answer.where('user_id in (?)', members.pluck(:user_id)).order(:created_at).reverse_order
|
|
end
|
|
end
|