Module: WillPaginate::Railtie::ControllerRescuePatch

Defined in:
lib/will_paginate/railtie.rb

Instance Method Summary collapse

Instance Method Details

#rescue_from(*args, &block) ⇒ Object


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

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