mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-01 00:19:08 +01:00
16 lines
339 B
Ruby
16 lines
339 B
Ruby
# frozen_string_literal: true
|
|
|
|
module User::RelationshipMethods
|
|
include CursorPaginatable
|
|
|
|
define_cursor_paginator :cursored_friends, :ordered_friends
|
|
define_cursor_paginator :cursored_followers, :ordered_followers
|
|
|
|
def ordered_friends
|
|
friends.reverse_order
|
|
end
|
|
|
|
def ordered_followers
|
|
followers.reverse_order
|
|
end
|
|
end
|