Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 383 Bytes
module Bundler
module SharedHelpers
def reverse_rubygems_kernel_mixin
require "rubygems"
# Disable rubygems' gem activation system
::Kernel.class_eval do
if private_method_defined?(:gem_original_require)
alias rubygems_require require
alias require gem_original_require
end
undef gem
end
end
end
end