Created
November 16, 2013 12:35
-
-
Save cwise/7499661 to your computer and use it in GitHub Desktop.
Stack level too deep?
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
# put this in application.rb before your app is initialized | |
module Kernel | |
def require_and_print(string) | |
puts string | |
require_original(string) | |
end | |
alias_method :require_original, :require | |
alias_method :require, :require_and_print | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment