Permalink
Browse files

simplified boot file

  • Loading branch information...
dimko committed May 9, 2011
1 parent c8d5699 commit d7a23ecccb7d9d8b3894b25425b5d3a3a27e8249
Showing with 3 additions and 10 deletions.
  1. +3 −10 config/boot.rb
View
@@ -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'])

0 comments on commit d7a23ec

Please sign in to comment.