debian-mirror-gitlab/config/environment.rb
2018-11-18 11:00:15 +05:30

11 lines
279 B
Ruby

# Load the rails application
# Remove this condition when upgraded to rails 5.0.
if %w[1 true].include?(ENV["RAILS5"])
require_relative 'application'
else
require File.expand_path('application', __dir__)
end
# Initialize the rails application
Rails.application.initialize!