aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-04-09 15:34:13 +1000
committerXavier Noria <fxn@hashref.com>2010-04-09 04:49:56 -0700
commit69d525948058b3a0cc6c3401caa8e05532638c5a (patch)
tree1b46b4d5a9f260c6d1ff0debc3c02852dd5188c8 /railties
parentc93580b48069a98aef1bef658c02bc393f173d99 (diff)
downloadrails-69d525948058b3a0cc6c3401caa8e05532638c5a.tar.gz
rails-69d525948058b3a0cc6c3401caa8e05532638c5a.tar.bz2
rails-69d525948058b3a0cc6c3401caa8e05532638c5a.zip
Continue expanding on Bundler.
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/initialization.textile19
1 files changed, 19 insertions, 0 deletions
diff --git a/railties/guides/source/initialization.textile b/railties/guides/source/initialization.textile
index e256503067..7013c3c324 100644
--- a/railties/guides/source/initialization.textile
+++ b/railties/guides/source/initialization.textile
@@ -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!