Created
March 20, 2015 05:27
-
-
Save ferromir/982e01e1e8f022817241 to your computer and use it in GitHub Desktop.
ACR - Ruby - Log sensitive data
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
# Given an user | |
@user = Article.new(params[:user]) | |
# Bad | |
logger.debug "New user: #{@user.attributes.inspect}" | |
# Good | |
logger.debug "New user: #{@user.attributes.id}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment