summaryrefslogtreecommitdiff
path: root/config/initializers/2_app.rb
blob: 655590dff0b3d4d81ff69be5bc3ee5c92fad90bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 }