diff options
| author | hukl <contact@smyck.org> | 2009-09-06 18:41:13 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-06 18:41:13 +0200 |
| commit | 54543aeb8a1cebdffa96a6ac4b98baa6c1b8747d (patch) | |
| tree | 517babd37a824c981a0821df4ebdac33302dec5d /config/boot.rb | |
| parent | 8c65ad0e5fe92ff956669860304caddcc90c9287 (diff) | |
updated rails boot.rb
Diffstat (limited to 'config/boot.rb')
| -rw-r--r-- | config/boot.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/boot.rb b/config/boot.rb index 0a51688..dd5e3b6 100644 --- a/config/boot.rb +++ b/config/boot.rb | |||
| @@ -44,6 +44,7 @@ module Rails | |||
| 44 | def load_initializer | 44 | def load_initializer |
| 45 | require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" | 45 | require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" |
| 46 | Rails::Initializer.run(:install_gem_spec_stubs) | 46 | Rails::Initializer.run(:install_gem_spec_stubs) |
| 47 | Rails::GemDependency.add_frozen_gem_path | ||
| 47 | end | 48 | end |
| 48 | end | 49 | end |
| 49 | 50 | ||
| @@ -81,8 +82,8 @@ module Rails | |||
| 81 | end | 82 | end |
| 82 | 83 | ||
| 83 | def load_rubygems | 84 | def load_rubygems |
| 85 | min_version = '1.3.2' | ||
| 84 | require 'rubygems' | 86 | require 'rubygems' |
| 85 | min_version = '1.3.1' | ||
| 86 | unless rubygems_version >= min_version | 87 | unless rubygems_version >= min_version |
| 87 | $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.) | 88 | $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.) |
| 88 | exit 1 | 89 | exit 1 |
