Commit de97f0eb7df42df4bdc87db1f45d8e9179ed4abb
Exists in
master
and in
21 other branches
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,6 +93,7 @@ module Searchkick | ||
93 | def total_pages | 93 | def total_pages |
94 | (total_count / per_page.to_f).ceil | 94 | (total_count / per_page.to_f).ceil |
95 | end | 95 | end |
96 | + alias_method :num_pages, :total_pages | ||
96 | 97 | ||
97 | def offset_value | 98 | def offset_value |
98 | current_page * per_page | 99 | current_page * per_page |