zammad/lib/version.rb
2026-01-02 15:41:09 +02:00

23 lines
350 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
class Version
=begin
Returns version number of application
version = Version.get
returns
'1.3.0' # example
=end
def self.get
Rails.root.join('VERSION').read.strip
rescue => e
Rails.logger.error "VERSION file could not be read: #{e}"
''
end
end