Module: WillPaginate::Railtie::ControllerRescuePatch

Defined in:
lib/will_paginate/railtie.rb

Instance Method Summary collapse

Instance Method Details

#rescue_from(*args, &block) ⇒ Object



60
61
62
63
64
65
# File 'lib/will_paginate/railtie.rb', line 60

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