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
| def match_results(name: nil, address: {}, records: []) | |
| address.symbolize_keys! | |
| records.each do |record| | |
| record.symbolize_keys! | |
| record[:fn_dl_match] = DamerauLevenshtein.distance(name.first.downcase, record[:first].downcase) <= 1 | |
| record[:mn_dl_match] = | |
| if name.middle.present? && record[:middle].present? | |
| (DamerauLevenshtein.distance(name.middle.downcase, | |
| record[:middle].downcase) <= 1) | |
| else |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am jmclachlan on github. | |
| * I am meschach (https://keybase.io/meschach) on keybase. | |
| * I have a public key ASDTN_3WqSaOI0Hh0GIAmHu1kGwDeR2Ha8HnAe8u7taBVgo | |
| To claim this, I am signing this object: |
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
| <script src="http://bcstage.herokuapp.com/assets/bforms-1a846d0fa8599ecab79a897ce4818d1a.js"></script> | |
| <script type="text/javascript"> | |
| _BRITEFORM_KEY = "{{form-key}}"; | |
| </script> |