Sha256: cba58957bd42aacb5a9c90f9baf264a30f206efab7d820a4a59970111089dcf1

Contents?: true

Size: 605 Bytes

Versions: 7

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

if defined?(Pagy)
  <%- if options[:framework] == 'bootstrap' -%>
  require 'pagy/extras/bootstrap'
  <%- elsif options[:framework] == 'semantic' -%>
  require 'pagy/extras/semantic'
  <%- end -%>
  require 'pagy/extras/trim'      # No need for page=1
  require 'pagy/extras/overflow'  # prevent user form requesting a page from the last resulting page
  # require 'pagy/extras/countless' # Used to avoid issuing additional count queries when doing pagination

  Pagy::VARS[:overflow] = :last_page
  # Set default number of items per page as 25
  Pagy::VARS[:items] = 25
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kowl-0.0.7 lib/kowl/templates/config/initializers/pagy.rb.tt
kowl-0.0.6 lib/kowl/templates/config/initializers/pagy.rb.tt
kowl-0.0.5 lib/kowl/templates/config/initializers/pagy.rb.tt
kowl-0.0.4 lib/kowl/templates/config/initializers/pagy.rb.tt
kowl-0.0.3 lib/kowl/templates/config/initializers/pagy.rb.tt
kowl-0.0.2 lib/kowl/templates/config/initializers/pagy.rb.tt
kowl-0.0.1 lib/kowl/templates/config/initializers/pagy.rb.tt