Module: Pagy::Deprecated

Defined in:
lib/pagy/deprecated.rb

Defined Under Namespace

Modules: Countless, Keynav, Offset, Pagy, Request

Class Method Summary collapse

Class Method Details

.client_max_limit(options) ⇒ Object



8
9
10
11
12
13
# File 'lib/pagy/deprecated.rb', line 8

def self.client_max_limit(options)
  if (max_limit = options.delete(:client_max_limit))
    options[:max_limit] ||= max_limit
    warn '[PAGY] the :client_max_limit option is deprecated: use :max_limit instead.'
  end
end