prawn-fillform 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- 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]
|