Skip to content

Commit

Permalink
a few minor consistency fixes for the initializer_example.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Jun 18, 2018
1 parent 00cd5bb commit 7195229
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/pagy/extras/initializer_example.rb
Expand Up @@ -35,26 +35,30 @@


# Pagy Variables
# All the Pagy::VARS here are set for all the Pagy instances but can be
# overridden by just passing them to Pagy.new or the #pagy controller method
# See https://ddnexus.github.io/pagy/api/pagy#variables
# All the Pagy::VARS are set for all the Pagy instances but can be overridden
# per instance by just passing them to Pagy.new or the #pagy controller method

# Instance variables (See https://ddnexus.github.io/pagy/api/pagy#instance-variables)
# Instance variables
# See https://ddnexus.github.io/pagy/api/pagy#instance-variables
# Pagy::VARS[:items] = 20 # default

# Other Variables (See https://ddnexus.github.io/pagy/api/pagy#other-variables)
# Other Variables
# See https://ddnexus.github.io/pagy/api/pagy#other-variables
# Pagy::VARS[:size] = [1,4,4,1] # default
# Pagy::VARS[:page_param] = :page # default
# Pagy::VARS[:params] = {} # default
# Pagy::VARS[:anchor] = '#anchor' # example
# Pagy::VARS[:link_extra] = 'data-remote="true"' # example
# Pagy::VARS[:item_path] = 'activerecord.models.product' # example


# Pagy::Frontend::I18N Constant
# See https://ddnexus.github.io/pagy/api/frontend#i18n
# Pagy::Frontend::I18N[:plurals] = -> (c) {([:zero, :one][c] || :other).to_s # default
# Pagy::Frontend::I18N.load_file('path/to/dictionary.yml') # load a custom file


# Rails: extras assets path required by compact, items and responsive extras
# See https://ddnexus.github.io/pagy/extras/compact and https://ddnexus.github.io/pagy/extras/responsive
# See https://ddnexus.github.io/pagy/extras
# Rails.application.config.assets.paths << Pagy.root.join('pagy', 'extras', 'javascripts')

0 comments on commit 7195229

Please sign in to comment.