Method: Elasticsearch::Model::Response::Pagination::WillPaginate#__default_per_page
- Defined in:
- lib/elasticsearch/model/response/pagination/will_paginate.rb
permalink #__default_per_page ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the models’s ‘per_page` value or the default
104 105 106 |
# File 'lib/elasticsearch/model/response/pagination/will_paginate.rb', line 104 def __default_per_page klass.respond_to?(:per_page) && klass.per_page || ::WillPaginate.per_page end |