Module: RSolr::Ext::Response::Docs
- Defined in:
- lib/rsolr-ext/response/docs.rb
Defined Under Namespace
Modules: Pageable, WillPaginateExt
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.extended(base) ⇒ Object
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/rsolr-ext/response/docs.rb', line 17
def self.extended(base)
d = base['response']['docs']
d.each{|doc| doc.extend RSolr::Ext::Doc }
d.extend Pageable
d.per_page = [base.rows, 1].max
d.start = base.start
d.total = base.total
d.extend WillPaginateExt
end
|
Instance Method Details
#docs ⇒ Object
68
69
70
71
72
73
|
# File 'lib/rsolr-ext/response/docs.rb', line 68
def docs
@docs ||= begin
warn "DEPRECATION WARNING: The custom pagination codebase in RSolr::Ext will no longer be supported. Use response.docs.will_paginate instead."
response['docs']
end
end
|