diff options
Diffstat (limited to 'railties/lib/tasks/framework.rake')
-rw-r--r-- | railties/lib/tasks/framework.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/tasks/framework.rake b/railties/lib/tasks/framework.rake index 6eaff2918e..2687129581 100644 --- a/railties/lib/tasks/framework.rake +++ b/railties/lib/tasks/framework.rake @@ -7,8 +7,8 @@ namespace :rails do Gem.manage_gems rails = (version = ENV['VERSION']) ? - Gem.cache.search('rails', "= #{version}").first : - Gem.cache.search('rails').sort_by { |g| g.version }.last + Gem.cache.find_name('rails', "= #{version}").first : + Gem.cache.find_name('rails').sort_by { |g| g.version }.last version ||= rails.version |