summaryrefslogtreecommitdiff
path: root/config/environment.rb
blob: 487a4564b4774823e62dbede689863e5c1092dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Load the rails application

# Remove this condition when upgraded to rails 5.0.
if %w[1 true].include?(ENV["RAILS5"])
  require_relative 'application'
else
  require File.expand_path('../application', __FILE__)
end

# Initialize the rails application
Rails.application.initialize!