pagination icon indicating copy to clipboard operation
pagination copied to clipboard

Make easy to switch pagination adapters

Open luislavena opened this issue 14 years ago • 1 comments

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.

luislavena avatar Nov 11 '10 15:11 luislavena

Hi Luis,

Great suggestion. I'll look into it. Sorry been really busy and didn't notice the github issue.

Thanks for the report!

cyx avatar Nov 27 '10 12:11 cyx