Module: SimpleCrud::Pagination::Adapter

Included in:
KaminariAdapter, PagyAdapter, WillPaginateAdapter, WorPaginateAdapter
Defined in:
lib/simple_crud/pagination/adapter.rb

Overview

Implement to plug in a pagination library other than wor-paginate (the default, see WorPaginateAdapter).

Instance Method Summary collapse

Instance Method Details

#paginate(controller, klass, options) ⇒ Object

Called when paginate: true. Must render the response itself.

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/simple_crud/pagination/adapter.rb', line 9

def paginate(controller, klass, options)
  raise NotImplementedError
end