Module: Pagy::Deprecated::Pagy

Included in:
Pagy
Defined in:
lib/pagy/deprecated.rb

Instance Method Summary collapse

Instance Method Details

#assign_options(**options) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/pagy/deprecated.rb', line 16

def assign_options(**options)
  if options.key?(:max_pages)
    warn '[PAGY] the :max_pages option is deprecated: ' \
         'use https://ddnexus.github.io/pagy/guides/how-to/#paginate-only-max-records instead.'
  end
  Deprecated.client_max_limit(options) # if used without Request#resolve_limit
  super
end