Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow to use BUNDLE_GEMFILE env variable in boot.rb [#6184 state:reso…

…lved]
  • Loading branch information...
commit d1b4f3ba9f099707aded7578a2af1d088694a680 1 parent acd716b
@drogus drogus authored
View
2  railties/lib/rails/generators/rails/app/templates/config/boot.rb
@@ -3,7 +3,7 @@
# Set up gems listed in the Gemfile.
gemfile = File.expand_path('../../Gemfile', __FILE__)
begin
- ENV['BUNDLE_GEMFILE'] = gemfile
+ ENV['BUNDLE_GEMFILE'] ||= gemfile
require 'bundler'
Bundler.setup
rescue Bundler::GemNotFound => e
Please sign in to comment.
Something went wrong with that request. Please try again.