]> git.openstreetmap.org Git - rails.git/blobdiff - config/boot.rb
Rename string to avoid translation confusion
[rails.git] / config / boot.rb
index ab6cb374de20fe94b208a1f092cce79a7ef6108e..988a5ddc460f03c2cafb3b91d98f0cc930ebc8ed 100644 (file)
@@ -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.