Commit 218d3070f937546a93f2a9b9045598116c870f21

Authored by kbackowski
1 parent c3b809e4
Exists in master

Updated configuration fill_color to return default value if not set

lib/letter_avatar/avatar.rb
... ... @@ -68,7 +68,7 @@ module LetterAvatar
68 68 -pointsize 140
69 69 -font #{FONT_FILENAME}
70 70 -weight #{LetterAvatar.weight}
71   - -fill '#{LetterAvatar.fill_color || FILL_COLOR}'
  71 + -fill '#{LetterAvatar.fill_color}'
72 72 -gravity Center
73 73 -annotate #{LetterAvatar.annotate_position} '#{identity.letter}'
74 74 '#{filename}'
... ...
lib/letter_avatar/configuration.rb
... ... @@ -9,7 +9,7 @@ module LetterAvatar
9 9 end
10 10  
11 11 def fill_color
12   - @fill_color
  12 + @fill_color || Avatar::FILL_COLOR
13 13 end
14 14  
15 15 def fill_color=(v)
... ...