mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
[ci skip] Add params_on_first_page
to configure list
This commit is contained in:
parent
4b2121e750
commit
4ce74360e2
1 changed files with 10 additions and 9 deletions
19
README.rdoc
19
README.rdoc
|
@ -77,15 +77,16 @@ Then bundle:
|
|||
=== General configuration options
|
||||
|
||||
You can configure the following default values by overriding these values using <tt>Kaminari.configure</tt> method.
|
||||
default_per_page # 25 by default
|
||||
max_per_page # nil by default
|
||||
max_pages # nil by default
|
||||
window # 4 by default
|
||||
outer_window # 0 by default
|
||||
left # 0 by default
|
||||
right # 0 by default
|
||||
page_method_name # :page by default
|
||||
param_name # :page by default
|
||||
default_per_page # 25 by default
|
||||
max_per_page # nil by default
|
||||
max_pages # nil by default
|
||||
window # 4 by default
|
||||
outer_window # 0 by default
|
||||
left # 0 by default
|
||||
right # 0 by default
|
||||
page_method_name # :page by default
|
||||
param_name # :page by default
|
||||
params_on_first_page # false by default
|
||||
|
||||
There's a handy generator that generates the default configuration file into config/initializers directory.
|
||||
Run the following generator command, then edit the generated file.
|
||||
|
|
Loading…
Reference in a new issue