Module: RSolr::Ext::Response::Docs::WillPaginateExt
- Defined in:
- lib/rsolr-ext/response/docs.rb
Overview
NOTE: This might move/change in the next major release of RSolr::Ext
Defined Under Namespace
Classes: MissingLibError
Instance Method Summary collapse
Instance Method Details
#will_paginate ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rsolr-ext/response/docs.rb', line 8 def will_paginate WillPaginate::Collection.create(self.current_page, self.per_page, self.total) do |pager| pager.replace(self) end rescue NameError raise MissingLibError.new end |