lib/fleximage/model.rb in fleximage-1.0.2 vs lib/fleximage/model.rb in fleximage-1.0.3
- old
+ new
@@ -533,10 +533,10 @@
# :format key that can be :jpg, :gif or :png
def output_image(options = {}) #:nodoc:
format = (options[:format] || :jpg).to_s.upcase
@output_image.format = format
@output_image.strip!
- if format = 'JPG'
+ if format == 'JPG'
quality = @jpg_compression_quality || self.class.output_image_jpg_quality
@output_image.to_blob { self.quality = quality }
else
@output_image.to_blob
end