mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Don't remove methods twice. [bug#555]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									e7685ab82c
								
							
						
					
					
						commit
						f2f3e60a8a
					
				
					 2 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -198,7 +198,13 @@ if defined?(Gem) then
 | 
			
		|||
 | 
			
		||||
    module QuickLoader
 | 
			
		||||
 | 
			
		||||
      @loaded_full_rubygems_library = false
 | 
			
		||||
 | 
			
		||||
      def self.load_full_rubygems_library
 | 
			
		||||
        return if @loaded_full_rubygems_library
 | 
			
		||||
 | 
			
		||||
        @loaded_full_rubygems_library = true
 | 
			
		||||
 | 
			
		||||
        class << Gem
 | 
			
		||||
          Gem::GEM_PRELUDE_METHODS.each do |method_name|
 | 
			
		||||
            undef_method method_name
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue