1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Change usage of defined? to check the rubygems constant existance by a rescue block on boot.rb for Ruby 1.9 compatibility

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
Carlos Paramio 2008-11-04 20:32:52 +01:00 committed by Jeremy Kemper
parent e3fcf9b668
commit 8412200f90

View file

@ -67,7 +67,7 @@ module Rails
class << self
def rubygems_version
Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
Gem::RubyGemsVersion rescue nil
end
def gem_version