Skip to content

Instantly share code, notes, and snippets.

@acechase
Last active December 22, 2015 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acechase/6454715 to your computer and use it in GitHub Desktop.
Save acechase/6454715 to your computer and use it in GitHub Desktop.
Things I want to play with in my next rails app
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