mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-30 22:02:14 +02:00
added a new config value and initializer for will_paginate
This commit is contained in:
parent
fcac636f07
commit
57dc1f51c6
2 changed files with 7 additions and 1 deletions
1
config/initializers/20_will_paginate.rb
Normal file
1
config/initializers/20_will_paginate.rb
Normal file
|
@ -0,0 +1 @@
|
||||||
|
WillPaginate.per_page = APP_CONFIG['items_per_page']
|
|
@ -1,3 +1,8 @@
|
||||||
|
# The site name, shown everywhere.
|
||||||
site_name: "justask"
|
site_name: "justask"
|
||||||
|
|
||||||
anonymous_name: "Anonymous Coward"
|
# Name of the "Anonymous" user. (e.g. "Anonymous Coward", "Arno Nym", "Mr. X", ...)
|
||||||
|
anonymous_name: "Anonymous"
|
||||||
|
|
||||||
|
# How many items (questions, answers, ...) do you want to show per page?
|
||||||
|
items_per_page: 10
|
Loading…
Reference in a new issue