lib/spontaneous/media/image/optimizer.rb in spontaneous-0.2.0.beta5 vs lib/spontaneous/media/image/optimizer.rb in spontaneous-0.2.0.beta6

- old
+ new

@@ -20,10 +20,10 @@ @image = source_image end def run format = Spontaneous::Media::Image.format(@image) - if respond_to?(format) + if format && respond_to?(format) send(format) end end def jpg