mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Number of posts per page is now configurable through .env
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user