public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Actually require the gem found

git-svn-id: 
http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5615 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Wed Nov 22 20:49:04 -0800 2006
commit  82e5ff7c6ea6ff516cfc8d7ed7b18c128d7d50d4
tree    948e7f6aaf109e659e30963687059b4846fc809e
parent  783c16bd61e48d2b3b93a155858bf9df5bd05755
...
26
27
28
29
 
30
31
32
 
33
34
35
...
26
27
28
 
29
30
31
 
32
33
34
35
0
@@ -26,10 +26,10 @@
0
       rails_gem = Gem.cache.search('rails', "~>#{version}.0").sort_by { |g| g.version.version }.last
0
 
0
       if rails_gem
0
- require_gem "rails", "=#{version}"
0
+ require_gem "rails", "=#{rails_gem.version.version}"
0
         require rails_gem.full_gem_path + '/lib/initializer'
0
       else
0
- STDERR.puts %(Cannot find gem for Rails =#{version}:
0
+ STDERR.puts %(Cannot find gem for Rails ~>#{version}.0:
0
     Install the missing gem with 'gem install -v=#{version} rails', or
0
     change environment.rb to define RAILS_GEM_VERSION with your desired version.
0
   )

Comments

    No one has commented yet.