lib/geared_pagination/page.rb in geared_pagination-1.1.2 vs lib/geared_pagination/page.rb in geared_pagination-1.2.0
- old
+ new
@@ -46,10 +46,14 @@
def next_param
@portion.next_param recordset.records
end
alias_method :next_number, :next_param
- deprecate next_number: "use #next_param instead"
+ if GearedPagination.rails_7_1?
+ deprecate next_number: "use #next_param instead", deprecator: GearedPagination.deprecator
+ else
+ deprecate next_number: "use #next_param instead"
+ end
def cache_key
"page/#{@portion.cache_key}"
end