aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-11-23 04:49:07 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-11-23 04:49:07 +0000
commit83dd1d8a034d7254b0d1314f9dc39a8e80e49fc7 (patch)
treeec5f69ef20bc2b614546826512797f8e20515024 /railties
parent958e9a36a9b5929f9cd28b15a4d50d6d3f821e18 (diff)
downloadrails-83dd1d8a034d7254b0d1314f9dc39a8e80e49fc7.tar.gz
rails-83dd1d8a034d7254b0d1314f9dc39a8e80e49fc7.tar.bz2
rails-83dd1d8a034d7254b0d1314f9dc39a8e80e49fc7.zip
Actually require the gem found
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/environments/boot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb
index 39339fd229..128fe76459 100644
--- a/railties/environments/boot.rb
+++ b/railties/environments/boot.rb
@@ -26,10 +26,10 @@ unless defined?(Rails::Initializer)
rails_gem = Gem.cache.search('rails', "~>#{version}.0").sort_by { |g| g.version.version }.last
if rails_gem
- require_gem "rails", "=#{version}"
+ require_gem "rails", "=#{rails_gem.version.version}"
require rails_gem.full_gem_path + '/lib/initializer'
else
- STDERR.puts %(Cannot find gem for Rails =#{version}:
+ STDERR.puts %(Cannot find gem for Rails ~>#{version}.0:
Install the missing gem with 'gem install -v=#{version} rails', or
change environment.rb to define RAILS_GEM_VERSION with your desired version.
)