Sha256: a02604ede4417589a6376453fe91df250d4e2d594955fc5da70642d306204a7f

Contents?: true

Size: 417 Bytes

Versions: 9

Compression:

Stored size: 417 Bytes

Contents

require 'rails'
require 'active_record'
require 'action_view'
require File.join(File.dirname(__FILE__), 'active_record')
require File.join(File.dirname(__FILE__), 'helpers')

module Kaminari
  class Railtie < ::Rails::Railtie #:nodoc:
    initializer 'paginatablize' do |app|
      ::ActiveRecord::Base.send :include, Kaminari::ActiveRecord
      ::ActionView::Base.send :include, Kaminari::Helpers
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kaminari-0.9.12 lib/kaminari/railtie.rb
kaminari-0.9.10 lib/kaminari/railtie.rb
kaminari-0.9.9 lib/kaminari/railtie.rb
kaminari-0.9.8 lib/kaminari/railtie.rb
kaminari-0.9.7 lib/kaminari/railtie.rb
kaminari-0.9.6 lib/kaminari/railtie.rb
kaminari-0.9.5 lib/kaminari/railtie.rb
kaminari-0.9.4 lib/kaminari/railtie.rb
kaminari-0.9.3 lib/kaminari/railtie.rb