Module: WillPaginate::Railtie::ControllerRescuePatch

Defined in:
lib/will_paginate/railtie.rb

Instance Method Summary collapse

Instance Method Details

#rescue_from(*args, **kwargs, &block) ⇒ Object



62
63
64
65
66
67
# File 'lib/will_paginate/railtie.rb', line 62

def rescue_from(*args, **kwargs, &block)
  if idx = args.index(WillPaginate::InvalidPage)
    args[idx] = args[idx].name
  end
  super(*args, **kwargs, &block)
end