Skip to content

Get point for reverse scope #25

Open
@macfurin

Description

@macfurin

Hi, first thank you for this awesome gem !

I need to get a point position for a record in an order_query scope in reverse order. Something like:

p = Post.published.order_home_reverse_at(post)

or

p = post.order_home_reverse(posts)

Is there a way to do this ? The only way I found is to define 2 order_query, one for each direction...
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions