diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-12 21:46:44 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-12 21:46:44 +0200 |
commit | 2b5ed618ed61ca14912f37f0fde747575a13f902 (patch) | |
tree | c666cdd561665652aeb550673e5e28292e664b78 /railties/lib/rails | |
parent | dc75104948bad953947716c018fc71ba28e0e236 (diff) | |
download | rails-2b5ed618ed61ca14912f37f0fde747575a13f902.tar.gz rails-2b5ed618ed61ca14912f37f0fde747575a13f902.tar.bz2 rails-2b5ed618ed61ca14912f37f0fde747575a13f902.zip |
[ci skip] Update Levenshtein code with better attribution.
Lacks some proper creds to the homies who went the... distance ;)
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb index 6a112fc710..fd35dfd1a2 100644 --- a/railties/lib/rails/generators.rb +++ b/railties/lib/rails/generators.rb @@ -277,7 +277,9 @@ module Rails protected - # This code is based directly on the Text gem implementation + # This code is based directly on the Text gem implementation. + # Copyright (c) 2006-2013 Paul Battley, Michael Neumann, Tim Fletcher. + # # Returns a value representing the "cost" of transforming str1 into str2 def self.levenshtein_distance(str1, str2) s = str1 |