Last active
December 22, 2015 09:49
-
-
Save acechase/6454715 to your computer and use it in GitHub Desktop.
Things I want to play with in my next rails app
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
logger.push_tags and .pop_tags to complement logger.tagged: | |
class Job | |
def before | |
Rails.logger.push_tags :jobs, self.class.name | |
end | |
def after | |
Rails.logger.pop_tags 2 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment