aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments
diff options
context:
space:
mode:
authorCarlos Paramio <carlosparamio@gmail.com>2008-11-04 20:32:52 +0100
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-17 10:53:18 -0800
commit8412200f90c239cbf12bb32b5246d0104306f6c2 (patch)
tree051df5c7251c650d36d000f13d0fe05632fc7482 /railties/environments
parente3fcf9b66889caba7852e273de778e0e52c6585c (diff)
downloadrails-8412200f90c239cbf12bb32b5246d0104306f6c2.tar.gz
rails-8412200f90c239cbf12bb32b5246d0104306f6c2.tar.bz2
rails-8412200f90c239cbf12bb32b5246d0104306f6c2.zip
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>
Diffstat (limited to 'railties/environments')
-rw-r--r--railties/environments/boot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb
index 57c256e438..0a516880ca 100644
--- a/railties/environments/boot.rb
+++ b/railties/environments/boot.rb
@@ -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