trabajo-afectivo/lib/version.rb

24 lines
355 B
Ruby
Raw Permalink Normal View History

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