Commit 473048b0641fde9f769895232d05d924ce420a31

Authored by Kieran Huggins
1 parent 14dc8592

alias num_pages to total_pages

for compatibility with kaminari's paginate helper
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/searchkick/results.rb
... ... @@ -88,6 +88,7 @@ module Searchkick
88 88 def total_pages
89 89 (total_count / per_page.to_f).ceil
90 90 end
  91 + alias_method :num_pages, :total_pages
91 92  
92 93 def offset_value
93 94 current_page * per_page
... ...