mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
23 lines
478 B
Ruby
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
|