Class: WillPaginate::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/will_paginate/railtie.rb

Defined Under Namespace

Modules: ControllerRescuePatch, ShowExceptionsPatch

Class Method Summary collapse

Class Method Details

.setup_actioncontrollerObject



24
25
26
27
28
29
# File 'lib/will_paginate/railtie.rb', line 24

def self.setup_actioncontroller
  ( defined?(ActionDispatch::ExceptionWrapper) ?
    ActionDispatch::ExceptionWrapper : ActionDispatch::ShowExceptions
  ).send :include, ShowExceptionsPatch
  ActionController::Base.extend ControllerRescuePatch
end