Commit f48d54ff6323fe50efb63fe3063f4e8105fc07ae
1 parent
bf7b20b0
Exists in
master
fix for 1.8
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/letter_avatar/avatar.rb
... | ... | @@ -18,7 +18,7 @@ module LetterAvatar |
18 | 18 | identity.color = LetterAvatar::COLORS[ |
19 | 19 | Digest::MD5.hexdigest(username)[0...15].to_i(16) % LetterAvatar::COLORS.length |
20 | 20 | ] |
21 | - identity.letter = username[0].upcase | |
21 | + identity.letter = username.first.upcase | |
22 | 22 | |
23 | 23 | identity |
24 | 24 | end | ... | ... |