debian-mirror-gitlab/config/environment.rb

12 lines
280 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
# Load the rails application
2018-05-09 12:01:36 +05:30
# Remove this condition when upgraded to rails 5.0.
2018-12-23 12:14:25 +05:30
if %w[0 false].include?(ENV["RAILS5"])
2018-11-18 11:00:15 +05:30
require File.expand_path('application', __dir__)
2018-12-23 12:14:25 +05:30
else
require_relative 'application'
2018-05-09 12:01:36 +05:30
end
2014-09-02 18:07:02 +05:30
# Initialize the rails application
2015-12-23 02:04:40 +05:30
Rails.application.initialize!