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

12 lines
279 B
Ruby
Raw Normal View History

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