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