mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Deprecate Kaminari::PageScopeMethods#num_pages in favor of total_pages
This commit is contained in:
parent
224a1f977a
commit
6eedbfe10b
1 changed files with 5 additions and 2 deletions
|
@ -30,8 +30,11 @@ module Kaminari
|
|||
total_pages_count
|
||||
end
|
||||
end
|
||||
#FIXME for compatibility. remove num_pages at some time in the future
|
||||
alias num_pages total_pages
|
||||
|
||||
def num_pages
|
||||
ActiveSupport::Deprecation.warn 'num_pages is deprecated and will be removed in Kaminari 1.0. Please use total_pages instead.'
|
||||
total_pages
|
||||
end
|
||||
|
||||
# Current page number
|
||||
def current_page
|
||||
|
|
Loading…
Reference in a new issue