add display of app version in UI
This commit is contained in:
committed by
Pete Matsyburka
parent
17de28965b
commit
39d14c15d6
@@ -29,6 +29,7 @@ module Docuseal
|
||||
|
||||
CERTS = JSON.parse(ENV.fetch('CERTS', '{}'))
|
||||
TIMESERVER_URL = ENV.fetch('TIMESERVER_URL', nil)
|
||||
VERSION_FILE_PATH = Rails.root.join('.version')
|
||||
|
||||
DEFAULT_URL_OPTIONS = {
|
||||
host: HOST,
|
||||
@@ -37,6 +38,10 @@ module Docuseal
|
||||
|
||||
module_function
|
||||
|
||||
def version
|
||||
@version ||= VERSION_FILE_PATH.read.strip if VERSION_FILE_PATH.exist?
|
||||
end
|
||||
|
||||
def multitenant?
|
||||
ENV['MULTITENANT'] == 'true'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user