Module: NuecaRailsInterfaces::V2::Pagination::WillPaginateAdapter

Extended by:
BaseAdapter
Defined in:
lib/nueca_rails_interfaces/v2/pagination/will_paginate_adapter.rb

Overview

Adapter for WillPaginate gem.

Class Method Summary collapse

Methods included from BaseAdapter

paginate

Class Method Details

.paginate(collection, page, per_page) ⇒ Object



12
13
14
# File 'lib/nueca_rails_interfaces/v2/pagination/will_paginate_adapter.rb', line 12

def self.paginate(collection, page, per_page)
  collection.paginate(page: page, per_page: per_page)
end