Commit de97f0eb7df42df4bdc87db1f45d8e9179ed4abb

Authored by Andrew Kane
2 parents 3d12118d 473048b0

Merge pull request #198 from kieran/master

alias num_pages to total_pages
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/searchkick/results.rb
... ... @@ -93,6 +93,7 @@ module Searchkick
93 93 def total_pages
94 94 (total_count / per_page.to_f).ceil
95 95 end
  96 + alias_method :num_pages, :total_pages
96 97  
97 98 def offset_value
98 99 current_page * per_page
... ...