1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
kaminari--kaminari/kaminari-core/lib/kaminari/core.rb
Akira Matsuda 106cf8071c ❄️
2016-10-12 05:45:39 +09:00

23 lines
478 B
Ruby

# frozen_string_literal: true
module Kaminari
end
# load Rails/Railtie
begin
require 'rails'
rescue LoadError
#do nothing
end
# load Kaminari components
require 'kaminari/config'
require 'kaminari/exceptions'
require 'kaminari/helpers/paginator'
require 'kaminari/models/page_scope_methods'
require 'kaminari/models/configuration_methods'
require 'kaminari/models/array_extension'
if defined? ::Rails::Railtie
require 'kaminari/railtie'
require 'kaminari/engine'
end