2011-02-05 08:55:38 -05:00
|
|
|
require 'rails'
|
|
|
|
require 'active_record'
|
2011-02-05 09:05:40 -05:00
|
|
|
require 'action_view'
|
2011-02-05 08:55:38 -05:00
|
|
|
require File.join(File.dirname(__FILE__), 'active_record')
|
2011-02-05 09:05:40 -05:00
|
|
|
require File.join(File.dirname(__FILE__), 'helpers')
|
2011-02-05 08:55:38 -05:00
|
|
|
|
|
|
|
module Kaminari
|
|
|
|
class Railtie < ::Rails::Railtie
|
|
|
|
initializer 'paginatablize' do |app|
|
|
|
|
::ActiveRecord::Base.send :include, Kaminari::ActiveRecord
|
2011-02-05 09:05:40 -05:00
|
|
|
::ActionView::Base.send :include, Kaminari::Helpers
|
2011-02-05 08:55:38 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|