mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
11 lines
275 B
Ruby
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
|