diff --git a/config/initializers/20_will_paginate.rb b/config/initializers/20_will_paginate.rb new file mode 100644 index 00000000..6f8de892 --- /dev/null +++ b/config/initializers/20_will_paginate.rb @@ -0,0 +1 @@ +WillPaginate.per_page = APP_CONFIG['items_per_page'] \ No newline at end of file diff --git a/config/justask.yml.example b/config/justask.yml.example index eb5c588f..e75902e2 100644 --- a/config/justask.yml.example +++ b/config/justask.yml.example @@ -1,3 +1,8 @@ +# The site name, shown everywhere. site_name: "justask" -anonymous_name: "Anonymous Coward" \ No newline at end of file +# 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 \ No newline at end of file