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
|
2011-02-10 18:22:59 -05:00
|
|
|
class Railtie < ::Rails::Railtie #:nodoc:
|
2011-02-05 08:55:38 -05:00
|
|
|
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
|