From d3c06645f8691b81fabba82202302f2cda58bdb5 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Mon, 17 Feb 2014 12:55:18 +0100 Subject: [PATCH] init Railtie if assets.compress is not false (partial backwards compatibility) --- lib/image_optim/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/image_optim/railtie.rb b/lib/image_optim/railtie.rb index 3330225a..5385cd6b 100644 --- a/lib/image_optim/railtie.rb +++ b/lib/image_optim/railtie.rb @@ -3,7 +3,7 @@ class ImageOptim class Railtie < Rails::Railtie initializer 'image_optim.initializer' do |app| - if app.config.assets.compress && app.config.assets.image_optim != false + if app.config.assets.compress != false && app.config.assets.image_optim != false image_optim = if app.config.assets.image_optim == true ImageOptim.new else