Actually set version
This commit is contained in:
parent
3852b65d35
commit
eca44717ba
@ -97,6 +97,7 @@ class ApplicationController < ActionController::Base
|
|||||||
render(json: {
|
render(json: {
|
||||||
success: true,
|
success: true,
|
||||||
uptime: Time.now - Websites::STARTED_AT,
|
uptime: Time.now - Websites::STARTED_AT,
|
||||||
|
version: Websites.config.version,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
5
config/initializers/git_helper.rb
Normal file
5
config/initializers/git_helper.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
#
|
||||||
|
Rails.configuration.to_prepare do
|
||||||
|
GitHelper.init
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user