Created
December 17, 2010 18:45
-
-
Save harmon/745472 to your computer and use it in GitHub Desktop.
Rails: logging helpers (v2.3.10)
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
def log_debug(text) | |
RAILS_DEFAULT_LOGGER.debug("\e[41m #{text} \e[0m") | |
end | |
def db(text) | |
log_debug(text) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment