debian-mirror-gitlab/config/initializers/2_app.rb

14 lines
294 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
module Gitlab
VERSION = File.read(Rails.root.join("VERSION")).strip
REVISION = Gitlab::Popen.popen(%W(git log --pretty=format:%h -n 1)).first.chomp
def self.config
Settings
end
end
#
# Load all libs for threadsafety
#
Dir["#{Rails.root}/lib/**/*.rb"].each { |file| require file }