Commit 56e63810f3f2f8d4fa05ee59d9dc8555d4a5e43e

Authored by Krzysiek Szczuka
1 parent 4b74fdab
Exists in master

one more .all usage removed

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/letter_avatar/colors.rb
... ... @@ -42,7 +42,7 @@ module LetterAvatar
42 42 elsif /[\d]/.match(char)
43 43 COLORS[char.to_i]
44 44 else
45   - COLORS[Digest::MD5.hexdigest(username)[0...15].to_i(16) % all.length]
  45 + COLORS[Digest::MD5.hexdigest(username)[0...15].to_i(16) % COLORS.length]
46 46 end
47 47 end
48 48  
... ...