summaryrefslogtreecommitdiff
path: root/config/initializers/update_gs_version_number.rb
blob: 303b1e0ffb530b51a320d02fbd1174394122a569 (plain)
1
2
3
4
5
6
# The Gemeinschaft version is stored in an environment variable.
# It equals the branch in git.
#
if !ENV['GS_VERSION'].nil? && GsParameter.get('GEMEINSCHAFT_VERSION') != ENV['GS_VERSION']
  GsParameter.where(:name => 'GEMEINSCHAFT_VERSION').first.update_attributes(:name => ENV['GS_VERSION'])
end