]> git.openstreetmap.org Git - rails.git/blobdiff - config/boot.rb
Localisation updates from https://translatewiki.net.
[rails.git] / config / boot.rb
index ab6cb374de20fe94b208a1f092cce79a7ef6108e..6b750f00b1dff4d94937b97ae0dbf76784b02164 100644 (file)
@@ -1,13 +1,3 @@
-require 'rubygems'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
 
-# 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)
+require 'bundler/setup' # Set up gems listed in the Gemfile.