Module: WillPaginate::Railtie::ControllerRescuePatch

Defined in:
lib/will_paginate/railtie.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) rescue_from(*args, &block)



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