Commit 4ad2941e86e7d3fca0bba9eecb277fddb12eb5e8

Authored by aidewoode
1 parent 6100adc8
Exists in master

fix a bug of using in sinatra

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/letter_avatar/avatar.rb
... ... @@ -20,7 +20,7 @@ module LetterAvatar
20 20 def self.from_username(username)
21 21 identity = new
22 22 identity.color = LetterAvatar::Colors.for(username)
23   - identity.letter = username.first.upcase
  23 + identity.letter = username[0].upcase
24 24  
25 25 identity
26 26 end
... ...