lib/image_optim/worker/jpegrecompress.rb in image_optim-0.22.0 vs lib/image_optim/worker/jpegrecompress.rb in image_optim-0.22.1

- old
+ new

@@ -8,10 +8,10 @@ # Initialize only if allow_lossy def self.init(image_optim, options = {}) super if options[:allow_lossy] end - QUALITY_NAMES = [:low, :medium, :high, :veryhigh] + QUALITY_NAMES = [:low, :medium, :high, :veryhigh].freeze quality_names_desc = QUALITY_NAMES.each_with_index.map do |name, i| "`#{i}` - #{name}" end.join(', ')