Skip to content

Commit eff7642

Browse files
lazybioskarmi
authored andcommitted
[MODEL] Improved the note about Gemfile/load order of pagination gems
Closes elastic#314
1 parent 3a09e9c commit eff7642

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch-model/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ response.records.each_with_hit { |record, hit| puts "* #{record.title}: #{hit._s
257257
You can implement pagination with the `from` and `size` search parameters. However, search results
258258
can be automatically paginated with the [`kaminari`](http://rubygems.org/gems/kaminari) or
259259
[`will_paginate`](https://github.com/mislav/will_paginate) gems.
260-
(The gems have to be added _first_ in your Gemfile, or loaded first in your application.)
260+
(The pagination gems must be added before the Elasticsearch gems in your Gemfile,
261+
or loaded first in your application.)
261262

262263
If Kaminari or WillPaginate is loaded, use the familiar paging methods:
263264

0 commit comments

Comments
 (0)