Skip to content

Commit

Permalink
added missing commits on r51104
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jul 3, 2015
1 parent df57841 commit c66bdbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rubygems.rb
Expand Up @@ -577,6 +577,10 @@ def self.host= host
# gem's paths are inserted before site lib directory by default.

def self.load_path_insert_index
$LOAD_PATH.each_with_index do |path, i|
return i if path.instance_variable_defined?(:@gem_prelude_index)
end

index = $LOAD_PATH.index RbConfig::CONFIG['sitelibdir']

index
Expand Down

0 comments on commit c66bdbd

Please sign in to comment.