Fix running Tracks on passenger.

The exception that Passenger threw was NoMethodError on the find_by_name method
This commit is contained in:
Reinier Balt 2011-10-27 23:08:06 +02:00
parent 6e20e374bb
commit 8fdbcedcba

View file

@ -4,7 +4,7 @@ def check_mongrel_around_115
begin
# Gem.available? is deprecated from rubygems 1.8.2
Gem::Specification::find_by_name "mongrel", "~>1.1.5"
rescue Gem::LoadError
rescue
if RUBY_VERSION[2] == "9"
false
else