Sha256: 8bfa7d8e31f35592029c0498ca6811645ea0922f0f8f073bbdfbccfd21b44136

Contents?: true

Size: 888 Bytes

Versions: 7

Compression:

Stored size: 888 Bytes

Contents

module BootstrapPager
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 'bootstrap_pager'

Sinatra/Padrino:
    gem 'bootstrap_pager', :require => 'bootstrap_pager/sinatra'

Grape:
    gem 'bootstrap_pager', :require => 'bootstrap_pager/grape'

EOC

# load BootstrapPager components
require 'bootstrap_pager/config'
require 'bootstrap_pager/helpers/paginator'
require 'bootstrap_pager/models/page_scope_methods'
require 'bootstrap_pager/models/configuration_methods'
require 'bootstrap_pager/hooks'

# if not using Railtie, call `BootstrapPager::Hooks.init` directly
if defined? Rails
  require 'bootstrap_pager/railtie'
  require 'bootstrap_pager/engine'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bootstrap_pager-0.11.0 lib/bootstrap_pager.rb
bootstrap_pager-0.10.1 lib/bootstrap_pager.rb
bootstrap_pager-0.10.0 lib/bootstrap_pager.rb
bootstrap_pager-0.9.3 lib/bootstrap_pager.rb
bootstrap_pager-0.9.2 lib/bootstrap_pager.rb
bootstrap_pager-0.9.1 lib/bootstrap_pager.rb
bootstrap_pager-0.9.0 lib/bootstrap_pager.rb