Skip to content

Instantly share code, notes, and snippets.

@jpterry
Created October 31, 2013 00:17
Show Gist options
  • Save jpterry/7242549 to your computer and use it in GitHub Desktop.
Save jpterry/7242549 to your computer and use it in GitHub Desktop.
def attribute_for_inspect(attribute)
case attribute
when 'public_key_encrypted_password'
hexify_string(public_key_encrypted_password)
when 'salt'
hexify_string(salt)
else
super
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment