pagination
pagination copied to clipboard
Make easy to switch pagination adapters
Hello,
I'm using Pagination with my own custom ActiveRecordAdapter and also creating one for ThinkingSphinx.
The problem is that every time I need to switch adapters need to first set it with Pagination.adapter
, then use Pagination.paginate
and remember to switch it back
Will be great if the adapter could be passed over options
as :adapter => :ActiveRecordAdapter
or :adapter => :ThinkingSphinxAdapter
Thank you.
Hi Luis,
Great suggestion. I'll look into it. Sorry been really busy and didn't notice the github issue.
Thanks for the report!