aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/app/templates/config/boot.rb
blob: 3165a4091e9560432dea9413e09ec94819928fd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Package management
# Choose one

# Use Bundler (preferred)
environment = File.expand_path('../../vendor/gems/environment', __FILE__)
require environment if File.exist?(environment)

# Use 2.x style vendor/rails directory
vendor_rails = File.expand_path('../../vendor/rails', __FILE__)
Dir["#{vendor_rails}/*/lib"].each { |path| $:.unshift(path) } if File.exist?(vendor_rails)

# Load Rails from traditional RubyGems
require 'rubygems'

require 'rails'