X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c9fa49c99485b0ba1242c6d13e12df9ab1532987..136ebc82a04831c876a6e8eac48b598fa0eb00d4:/config/boot.rb diff --git a/config/boot.rb b/config/boot.rb index ab6cb374d..988a5ddc4 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,13 +1,4 @@ -require 'rubygems' +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) -# Set up gems listed in the Gemfile. -gemfile = File.expand_path('../../Gemfile', __FILE__) -begin - ENV['BUNDLE_GEMFILE'] = gemfile - require 'bundler' - Bundler.setup -rescue Bundler::GemNotFound => e - STDERR.puts e.message - STDERR.puts "Try running `bundle install`." - exit! -end if File.exist?(gemfile) +require "bundler/setup" # Set up gems listed in the Gemfile. +require "bootsnap/setup" # Speed up boot time by caching expensive operations.