Remove unused user relationship paginators

This commit is contained in:
Karina Kwiatek 2022-06-18 17:47:15 +02:00 committed by Karina Kwiatek
parent e404b61ec1
commit 483c413796
1 changed files with 0 additions and 10 deletions

View File

@ -3,19 +3,9 @@
module User::RelationshipMethods
include CursorPaginatable
define_cursor_paginator :cursored_followings, :ordered_followings
define_cursor_paginator :cursored_followers, :ordered_followers
define_cursor_paginator :cursored_following_relationships, :ordered_following_relationships
define_cursor_paginator :cursored_follower_relationships, :ordered_follower_relationships
def ordered_followings
followings.reverse_order.includes(:profile)
end
def ordered_followers
followers.reverse_order.includes(:profile)
end
def ordered_following_relationships
active_follow_relationships.reverse_order.includes(target: [:profile])
end