提交 c88b9337 编写于 作者: J José Valim

Allow a Rails application to be initialized from any directory and not just...

Allow a Rails application to be initialized from any directory and not just from inside it (ht: Andre Arko).
上级 bd34df00
require 'rubygems' require 'rubygems'
# Set up gems listed in the Gemfile. # Set up gems listed in the Gemfile.
if File.exist?(File.expand_path('../../Gemfile', __FILE__)) gemfile = File.expand_path('../../Gemfile', __FILE__)
if File.exist?(gemfile)
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler' require 'bundler'
Bundler.setup Bundler.setup
end end
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册