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

15 lines
417 B
Ruby
Raw Normal View History

2011-02-05 08:55:38 -05:00
require 'rails'
require 'active_record'
require 'action_view'
2011-02-05 08:55:38 -05:00
require File.join(File.dirname(__FILE__), 'active_record')
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
::ActionView::Base.send :include, Kaminari::Helpers
2011-02-05 08:55:38 -05:00
end
end
end