summaryrefslogtreecommitdiff
path: root/config/boot.rb
blob: 2eacff868eb7067738f2507b826e0cc84e2b8860 (plain)
1
2
3
4
5
6
7
8
9
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)

# Set up gems listed in the Gemfile.
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
begin
  require 'bootsnap/setup' if ENV['RAILS_ENV'] != 'production' || %w(1 yes true).include?(ENV['ENABLE_BOOTSNAP'])
rescue LoadError
  # bootsnap is an optional dependency, so if we don't have it, it's fine
end