Remove unused user relationship paginators
This commit is contained in:
parent
e404b61ec1
commit
483c413796
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue