Add Site settings > General (#133)

This commit is contained in:
Riccardo Graziosi
2022-07-18 10:47:54 +02:00
committed by GitHub
parent bdc4004e4a
commit 35831b9801
99 changed files with 2405 additions and 281 deletions

View File

@@ -16,20 +16,16 @@ module App
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.
def name
ENV["APP_NAME"]
def multi_tenancy?
ENV["MULTI_TENANCY"] == "true"
end
def email_confirmation?
ENV["EMAIL_CONFIRMATION"] == "yes"
end
def show_logo?
ENV["SHOW_LOGO"] == "yes"
ENV["EMAIL_CONFIRMATION"] == "true"
end
def posts_per_page
ENV["POSTS_PER_PAGE"].to_i
15
end
end
end