Created
October 23, 2012 15:16
-
-
Save moreta/3939354 to your computer and use it in GitHub Desktop.
ruby nomalize
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
# credit cart number | |
def normalize_credit_card_number | |
self.cc_number.gsub!(/[-\s]/, '') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment