lib/image_optim/railtie.rb in image_optim-0.20.0 vs lib/image_optim/railtie.rb in image_optim-0.20.1

- old
+ new

@@ -12,19 +12,19 @@ return if app.config.assets.image_optim == false app.assets end - def options + def options(app) if app.config.assets.image_optim == true {} else app.config.assets.image_optim || {} end end def register_preprocessor(app) - image_optim = ImageOptim.new(options) + image_optim = ImageOptim.new(options(app)) processor = proc do |_context, data| image_optim.optimize_image_data(data) || data end