diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2018-07-20 13:58:17 +0200 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2018-07-20 14:16:01 +0200 |
commit | 31a349e0db78f6a466a096065860688ea273b877 (patch) | |
tree | c40c7e377baba11f22b33a44426f6646b5a2b045 /config/boot.rb | |
parent | 3bd8a783e8e91cc863655a46c02f8c3391f2a1a4 (diff) | |
download | gitlab-ce-31a349e0db78f6a466a096065860688ea273b877.tar.gz |
Add bootsnap to development/test bundle and enable it if available
This will enable bootsnap whenver the gem is available.
Diffstat (limited to 'config/boot.rb')
-rw-r--r-- | config/boot.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb index 84f390f3228..655c54ddb84 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -9,3 +9,8 @@ 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' +rescue LoadError + # bootsnap is optional dependency, so if we don't have it it's fine +end |