gitlab-org--gitlab-foss/config/environment.rb

12 lines
280 B
Ruby
Raw Normal View History

2011-10-08 21:36:38 +00:00
# Load the rails application
# Remove this condition when upgraded to rails 5.0.
if %w[0 false].include?(ENV["RAILS5"])
2018-07-02 10:43:06 +00:00
require File.expand_path('application', __dir__)
else
require_relative 'application'
end
2011-10-08 21:36:38 +00:00
# Initialize the rails application
2015-11-25 16:18:44 +00:00
Rails.application.initialize!