Created
October 20, 2017 22:43
-
-
Save mnichols/e25761fa12af5ca1041aee3b2a132d5a to your computer and use it in GitHub Desktop.
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 clean_slate(record, name) | |
name_parts = name.split(/\s+/) | |
name_parts.each do |part| | |
record.gsub!(/\b#{part}\b/i,"XX" * name.length) | |
end | |
return record | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment