Skip to content

Commit

Permalink
Change usage of defined? to check the rubygems constant existance by …
Browse files Browse the repository at this point in the history
…a rescue block on boot.rb for Ruby 1.9 compatibility

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
carlosparamio authored and jeremy committed Nov 17, 2008
1 parent e3fcf9b commit 8412200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/environments/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def load_rails_gem

class << self
def rubygems_version
Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
Gem::RubyGemsVersion rescue nil
end

def gem_version
Expand Down

0 comments on commit 8412200

Please sign in to comment.