Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add a CORE_VERSION optional file

Oliver Günther533d706f4fa6
diff --git a/lib/open_project/version.rb b/lib/open_project/version.rb
index 0e28d45995e..97712e670ba 100644
--- a/lib/open_project/version.rb
+++ b/lib/open_project/version.rb
@@ -71,6 +71,15 @@ module OpenProject
end
end
+ def core_version
+ cached_or_block(:@core_version) do
+ path = Rails.root.join('config', 'CORE_VERSION')
+ if File.exists? path
+ File.read(path)
+ end
+ end
+ end
+
##
# Get information on when this version was created / updated from either
# 1. A RELEASE_DATE file