Sha256: 8fdc3d195272deb9bbcf285b4d797dced8d412a314f6e432d8f1cdfac5213c09
Contents?: true
Size: 835 Bytes
Versions: 14
Compression:
Stored size: 835 Bytes
Contents
module Kaminari end # load Rails/Railtie begin require 'rails' rescue LoadError #do nothing end $stderr.puts <<-EOC if !defined?(Rails) && !defined?(Sinatra) && !defined?(Grape) warning: no framework detected. Your Gemfile might not be configured properly. ---- e.g. ---- Rails: gem 'kaminari' Sinatra/Padrino: gem 'kaminari', :require => 'kaminari/sinatra' Grape: gem 'kaminari', :require => 'kaminari/grape' EOC # load Kaminari components require 'kaminari/config' require 'kaminari/helpers/action_view_extension' require 'kaminari/helpers/paginator' require 'kaminari/models/page_scope_methods' require 'kaminari/models/configuration_methods' require 'kaminari/hooks' # if not using Railtie, call `Kaminari::Hooks.init` directly if defined? Rails require 'kaminari/railtie' require 'kaminari/engine' end
Version data entries
14 entries across 14 versions & 6 rubygems