X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/604011d6a88571730f2fbb0c4b718f5edccafc30..6d59a122ead9e2cc7d340ba6ec13cfdc250e1e5e:/config/boot.rb?ds=sidebyside diff --git a/config/boot.rb b/config/boot.rb index ab6cb374d..4489e5868 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,13 +1,6 @@ require 'rubygems' # 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) +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) + +require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])