prawn-fillform 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/prawn-fillform/version.rb +1 -1
- data/lib/prawn-fillform.rb +2 -2
- metadata +1 -1
data/lib/prawn-fillform.rb
CHANGED
@@ -167,14 +167,14 @@ module Prawn
|
|
167
167
|
if value
|
168
168
|
if field.type == :text
|
169
169
|
fill_color options[:font_color] || field.font_color
|
170
|
-
text_box value, :at => [field.x + 2, field.y - 1],
|
170
|
+
text_box value.to_s, :at => [field.x + 2, field.y - 1],
|
171
171
|
:align => options[:align] || field.align,
|
172
172
|
:width => options[:width] || field.width,
|
173
173
|
:height => options[:height] || field.height,
|
174
174
|
:valign => options[:valign] || :center,
|
175
175
|
:size => options[:font_size] || field.font_size
|
176
176
|
elsif field.type == :button
|
177
|
-
image value, :at => [field.x + 2, field.y - 1],
|
177
|
+
image value.to_s, :at => [field.x + 2, field.y - 1],
|
178
178
|
:position => options[:position] || :center,
|
179
179
|
:vposition => options[:vposition] || :center,
|
180
180
|
:fit => options[:fit] || [field.width, field.height]
|