Speed up boot time
by removing an unused `begin ... rescue ... end` block. The block is no longer necessary after moving the bootsnap gem to the :default group in eedf735574.
This commit is contained in:
parent
d892e80bf0
commit
f30b1d61d9
|
|
@ -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' 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
|
||||
require 'bootsnap/setup' if ENV['RAILS_ENV'] != 'production' || %w(1 yes true).include?(ENV['ENABLE_BOOTSNAP'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue