From 2b5ed618ed61ca14912f37f0fde747575a13f902 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Mon, 12 Sep 2016 21:46:44 +0200 Subject: [ci skip] Update Levenshtein code with better attribution. Lacks some proper creds to the homies who went the... distance ;) --- guides/rails_guides/levenshtein.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'guides/rails_guides') diff --git a/guides/rails_guides/levenshtein.rb b/guides/rails_guides/levenshtein.rb index a3e7620444..e947150364 100644 --- a/guides/rails_guides/levenshtein.rb +++ b/guides/rails_guides/levenshtein.rb @@ -1,6 +1,8 @@ module RailsGuides module Levenshtein - # 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.distance(str1, str2) s = str1 -- cgit v1.2.3