debian-mirror-gitlab/config/environment.rb

12 lines
279 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.
2019-01-03 12:48:30 +05:30
if %w[1 true].include?(ENV["RAILS5"])
2018-12-23 12:14:25 +05:30
require_relative 'application'
2019-01-03 12:48:30 +05:30
else
require File.expand_path('application', __dir__)
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!