added a new config value and initializer for will_paginate

This commit is contained in:
nilsding 2014-11-12 20:40:06 +01:00
parent fcac636f07
commit 57dc1f51c6
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1 @@
WillPaginate.per_page = APP_CONFIG['items_per_page']

View File

@ -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