summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJulian Pawlowski <julian.pawlowski@gmail.com>2013-01-22 12:15:48 +0100
committerJulian Pawlowski <julian.pawlowski@gmail.com>2013-01-22 12:15:48 +0100
commit5d15c975b7d4509d786ab7b95ec61ed7ad166b14 (patch)
tree8d19a54d7db235f0fe6266ffe9ed58e702285055 /config
parentab63774d954fe1f967a97ffe5a0a66016eca2257 (diff)
add GS_BUILDNAME as tooltip in the footer
Diffstat (limited to 'config')
-rw-r--r--config/initializers/update_gs_version_number.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/initializers/update_gs_version_number.rb b/config/initializers/update_gs_version_number.rb
index 4770858..d9e1aae 100644
--- a/config/initializers/update_gs_version_number.rb
+++ b/config/initializers/update_gs_version_number.rb
@@ -7,3 +7,10 @@ if !ENV['GS_VERSION'].nil? && GsParameter.table_exists? && GsParameter.get('GEME
version.value = ENV['GS_VERSION']
version.save
end
+
+if !ENV['GS_BUILDNAME'].nil? && GsParameter.table_exists? && GsParameter.get('GS_BUILDNAME') != ENV['GS_BUILDNAME']
+ buildname = GsParameter.find_or_create_by_name('GEMEINSCHAFT_BUILDNAME')
+ buildname.section = 'Generic'
+ buildname.value = ENV['GS_BUILDNAME']
+ buildname.save
+end