debian-mirror-gitlab/config/environment.rb
2018-12-23 12:14:25 +05:30

11 lines
280 B
Ruby

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