Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


spacefugitive edited this page · 8 revisions
Clone this wiki locally

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.