lib/imgkit/source.rb in imgkit-1.3.9 vs lib/imgkit/source.rb in imgkit-1.3.10
- old
+ new
@@ -9,10 +9,10 @@
def url?
@source.is_a?(String) && @source.match(/\Ahttp/)
end
def file?
- @source.kind_of?(File)
+ @source.kind_of?(File) || @source.kind_of?(Tempfile)
end
def html?
!(url? || file?)
end