Created
February 23, 2012 09:13
-
-
Save marocchino/1891772 to your computer and use it in GitHub Desktop.
이건 무슨 뻘짓인가 'ㅅ'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gem.module_eval do | |
class << Gem | |
alias_method :orig_activate, :activate | |
def activate(gem, *version_requirements) | |
orig_activate(gem, *version_requirements) | |
rescue Gem::LoadError => e | |
if (gem.is_a?(String) ? gem : gem.name) == 'rack' | |
false | |
else | |
raise e | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment