From 473048b0641fde9f769895232d05d924ce420a31 Mon Sep 17 00:00:00 2001 From: Kieran Huggins Date: Thu, 8 May 2014 21:59:59 -0400 Subject: [PATCH] alias num_pages to total_pages --- lib/searchkick/results.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/lib/searchkick/results.rb b/lib/searchkick/results.rb index d577de8..015c368 100644 --- a/lib/searchkick/results.rb +++ b/lib/searchkick/results.rb @@ -88,6 +88,7 @@ module Searchkick def total_pages (total_count / per_page.to_f).ceil end + alias_method :num_pages, :total_pages def offset_value current_page * per_page -- libgit2 0.21.0