mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
14 lines
417 B
Ruby
14 lines
417 B
Ruby
require 'rails'
|
|
require 'active_record'
|
|
require 'action_view'
|
|
require File.join(File.dirname(__FILE__), 'active_record')
|
|
require File.join(File.dirname(__FILE__), 'helpers')
|
|
|
|
module Kaminari
|
|
class Railtie < ::Rails::Railtie #:nodoc:
|
|
initializer 'paginatablize' do |app|
|
|
::ActiveRecord::Base.send :include, Kaminari::ActiveRecord
|
|
::ActionView::Base.send :include, Kaminari::Helpers
|
|
end
|
|
end
|
|
end
|