Skip to content
This repository

Welcome to the scope-builder wiki!

How the heck does one use pagination with this bad boy?

Like this:

scope = User.scope_builder
scope.super_awesome if awesomosity > 5
scope.paginate(:order => ‘coolitude desc’)

Question : how does one use pagination with this bad boy while using :joins and select? i.e. how does one get the sql for the scope to use paginate_by_sql ?

Something went wrong with that request. Please try again.