1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Continue expanding on Bundler.

This commit is contained in:
Ryan Bigg 2010-04-09 15:34:13 +10:00 committed by Xavier Noria
parent c93580b480
commit 69d5259480

View file

@ -2214,6 +2214,25 @@ And if they do will call +write_rb_lock+:
This will write out to _.bundler/environment.rb_ the state of the current environment.
Now a quick refresher. Bundler is still evaulating the code for the +require+ in _lib/bundler.rb_, and the +groups+ variable here is an +Array+ containing two elements: +:default+ and the current Rails environment: +development+:
<ruby>
def require(*groups)
gemfile = default_gemfile
load(gemfile).require(*groups)
end
</ruby>
The second +require+ method here:
<ruby>
load(gemfile).require(*groups)
</ruby>
Is defined on _bundler/runtime.rb_
h3. Firing it up!