Created
August 26, 2010 13:47
-
-
Save workmad3/551404 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| unless Kernel.methods.include?(:require_relative) | |
| puts "Patching in require_relative" | |
| def require_relative(*args) | |
| $: << File.dirname(__FILE__) unless $:.include?(File.dirname(__FILE__)) | |
| require(*args) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment