lib/kaminari/helpers/paginator.rb in kaminari-0.16.3 vs lib/kaminari/helpers/paginator.rb in kaminari-0.17.0

- old
+ new

@@ -10,10 +10,10 @@ class Paginator < Tag # so that this instance can actually "render" include ::ActionView::Context def initialize(template, options) #:nodoc: - #FIXME for compatibility. remove num_pages at some time in the future + ActiveSupport::Deprecation.warn 'num_pages is deprecated and will be removed in Kaminari 1.0. Please use total_pages instead.' if options.has_key? :num_pages options[:num_pages] ||= options[:total_pages] @window_options = {}.tap do |h| h[:window] = options.delete(:window) || options.delete(:inner_window) || Kaminari.config.window outer_window = options.delete(:outer_window) || Kaminari.config.outer_window