mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add Site settings > General (#133)
This commit is contained in:
committed by
GitHub
parent
bdc4004e4a
commit
35831b9801
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user