Number of posts per page is now configurable through .env

This commit is contained in:
riggraz
2019-09-23 16:10:25 +02:00
parent eed2ef5446
commit 95ffd32420
5 changed files with 11 additions and 3 deletions

View File

@@ -23,5 +23,9 @@ module App
def email_confirmation?
ENV["EMAIL_CONFIRMATION"] == "1"
end
def posts_per_page
ENV["POSTS_PER_PAGE"].to_i
end
end
end