]> git.openstreetmap.org Git - rails.git/blobdiff - config/boot.rb
Use the bootstrap spacer variable as the basis for spacing calcuation, and match...
[rails.git] / config / boot.rb
index 6b750f00b1dff4d94937b97ae0dbf76784b02164..630904bfcc63fc033b45834ce853223dc2d055c8 100644 (file)
@@ -1,3 +1,4 @@
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
 
-require 'bundler/setup' # Set up gems listed in the Gemfile.
+require "bundler/setup" # Set up gems listed in the Gemfile.
+require "bootsnap/setup" if ENV.fetch("ENABLE_BOOTSNAP", "true") == "true" # Speed up boot time by caching expensive operations.