aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/initializer.rb
diff options
context:
space:
mode:
authorDavid Dollar <ddollar@gmail.com>2009-03-13 10:20:23 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-03-13 10:20:23 +0000
commit99d75a7b02bf430a124b9c3e2515850959d78acf (patch)
tree02e4f021f199a984f01a84f24d0fd06d2622ee39 /railties/lib/initializer.rb
parent5b751ae0b3f6c10a1053e4a2e04fd92d228d787f (diff)
downloadrails-99d75a7b02bf430a124b9c3e2515850959d78acf.tar.gz
rails-99d75a7b02bf430a124b9c3e2515850959d78acf.tar.bz2
rails-99d75a7b02bf430a124b9c3e2515850959d78acf.zip
Makes the gem system understand development vs. runtime dependencies [#2195 state:resolved]
The patch also fixes: * Fixes the chicken/egg problem present in the current gem system when gems are defined in the config that are not yet installed. * Remove the need to have hoe as a dependency of your production app. * Makes the gem 'unpacking' system a lot less fragile. Signed-off-by: Matt Jones <al2o3cr@gmail.com> Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'railties/lib/initializer.rb')
-rw-r--r--railties/lib/initializer.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index edea4e513a..a04405a7c2 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -301,7 +301,9 @@ module Rails
end
def load_gems
- @configuration.gems.each { |gem| gem.load }
+ unless $gems_build_rake_task
+ @configuration.gems.each { |gem| gem.load }
+ end
end
def check_gem_dependencies