Skip to content

Instantly share code, notes, and snippets.

@cwise
Created November 16, 2013 12:35
Show Gist options
  • Save cwise/7499661 to your computer and use it in GitHub Desktop.
Save cwise/7499661 to your computer and use it in GitHub Desktop.
Stack level too deep?
# 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