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:
parent
e3fcf9b668
commit
8412200f90
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue