Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (13 sloc) 0.471 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
require 'will_paginate'

# This is all duplication of what Railtie does, but is necessary because
# the initializer defined by the Railtie won't ever run when loaded as plugin.

if defined? ActiveRecord::Base
  require 'will_paginate/active_record'
end

if defined? ActionController::Base
  WillPaginate::Railtie.setup_actioncontroller
end

if defined? ActionView::Base
  require 'will_paginate/view_helpers/action_view'
end

WillPaginate::Railtie.add_locale_path config
Something went wrong with that request. Please try again.