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

+ (Object) add_locale_path(config)



34
35
36
# File 'lib/will_paginate/railtie.rb', line 34

def self.add_locale_path(config)
  config.i18n.railties_load_path.unshift(*WillPaginate::I18n.load_path)
end

+ (Object) setup_actioncontroller



27
28
29
30
31
32
# File 'lib/will_paginate/railtie.rb', line 27

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