2011-10-08 17:36:38 -04:00
|
|
|
# Load the rails application
|
2018-03-21 18:37:57 -04:00
|
|
|
|
|
|
|
# Remove this condition when upgraded to rails 5.0.
|
2018-08-22 08:09:28 -04:00
|
|
|
if %w[0 false].include?(ENV["RAILS5"])
|
2018-07-02 06:43:06 -04:00
|
|
|
require File.expand_path('application', __dir__)
|
2018-08-22 08:09:28 -04:00
|
|
|
else
|
|
|
|
require_relative 'application'
|
2018-03-21 18:37:57 -04:00
|
|
|
end
|
2011-10-08 17:36:38 -04:00
|
|
|
|
|
|
|
# Initialize the rails application
|
2015-11-25 11:18:44 -05:00
|
|
|
Rails.application.initialize!
|