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.
if %w[1 true].include?(ENV["RAILS5"])
require_relative 'application'
else
2018-11-18 11:00:15 +05:30
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!