Skip to content

Commit

Permalink
Continue expanding on Bundler.
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Apr 9, 2010
1 parent ce30d0f commit 395dbd5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions railties/guides/source/initialization.textile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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. 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! h3. Firing it up!


Expand Down

0 comments on commit 395dbd5

Please sign in to comment.