diff options
Diffstat (limited to 'config/boot.rb')
-rw-r--r-- | config/boot.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/config/boot.rb b/config/boot.rb index b76b26a5e75..da4e6b7290c 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -2,8 +2,4 @@ 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' unless ENV['DISABLE_BOOTSNAP'] -rescue LoadError - # bootsnap is an optional dependency, so if we don't have it, it's fine -end +require 'bootsnap/setup' if ENV['RAILS_ENV'] != 'production' || %w(1 yes true).include?(ENV['ENABLE_BOOTSNAP']) |