1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
kaminari--kaminari/lib/kaminari/railtie.rb
2011-02-05 23:45:49 +09:00

11 lines
275 B
Ruby

require 'rails'
require 'active_record'
require File.join(File.dirname(__FILE__), 'active_record')
module Kaminari
class Railtie < ::Rails::Railtie
initializer 'paginatablize' do |app|
::ActiveRecord::Base.send :include, Kaminari::ActiveRecord
end
end
end