Skip to content

Make easy to switch pagination adapters #3

@luislavena

Description

@luislavena

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions