lib/geared_pagination/headers.rb in geared_pagination-0.1 vs lib/geared_pagination/headers.rb in geared_pagination-0.2
- old
+ new
@@ -11,10 +11,10 @@
end
private
def headers
Hash.new.tap do |h|
- h["X-Total-Count"] = @page.collection.records_count.to_s
+ h["X-Total-Count"] = @page.recordset.records_count.to_s
h["Link"] = next_page_link_header unless @page.last?
end
end
def applicable?