module Groonga::WillPaginateAPI

@deprecated since 0.9.2. Use Kaminari instead of will_paginate.

Public Instance Methods

offset() click to toggle source
# File lib/racknga/will_paginate.rb, line 39
def offset
  (start_offset || 0) - 1
end
out_of_bounds?() click to toggle source
# File lib/racknga/will_paginate.rb, line 35
def out_of_bounds?
  current_page > total_pages
end
per_page() click to toggle source
# File lib/racknga/will_paginate.rb, line 27
def per_page
  n_records_in_page
end
total_entries() click to toggle source
# File lib/racknga/will_paginate.rb, line 31
def total_entries
  n_records
end
total_pages() click to toggle source
# File lib/racknga/will_paginate.rb, line 23
def total_pages
  n_pages
end