diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/ri/paths.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb index 035d0fc242..b4b6c64925 100644 --- a/lib/rdoc/ri/paths.rb +++ b/lib/rdoc/ri/paths.rb @@ -43,7 +43,8 @@ module RDoc::RI::Paths PATH = [ SYSDIR, SITEDIR, HOMEDIR ].find_all {|p| p && File.directory?(p)} begin - require 'rubygems' unless defined?(Gem) and Gem::Enable + require 'rubygems' unless defined?(Gem) and defined?(Gem::Enable) and + Gem::Enable # HACK dup'd from Gem.latest_partials and friends all_paths = [] |