Where does Kaminari calculate it's page url links?
===

I'm working with a custom model that I made that pretends to be a table based ActiveRecord object.  It is instead backed by a SQL view.  There's some trickery behind the scenes.

The problem is that pagination links with Kaminari aren't working correctly.  They are displaying the correct page numbers and number of page links just to the wrong route.

I need to know where in the Kaminari source it figures out the route to the object it has been set to paginate on.  Or if someone is familiar with the active record method name that would be used to calculate that.

I've been searching through the source code and I can't figure it out.