aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/app/templates/config/boot.rb
blob: 3971a070122739c417f49b4b22acd16bf48cd794 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Use locked gems if present.
begin
  require File.expand_path('../../.bundle/environment', __FILE__)

rescue LoadError
  # Otherwise, use RubyGems.
  require 'rubygems'

  # And set up the gems listed in the Gemfile.
  if File.exist?(File.expand_path('../../Gemfile', __FILE__))
    require 'bundler'
    Bundler.setup
  end
end