Skip to content

Commit

Permalink
init Railtie if assets.compress is not false (partial backwards compa…
Browse files Browse the repository at this point in the history
…tibility)
  • Loading branch information
toy committed Feb 17, 2014
1 parent f09ac05 commit d3c0664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/image_optim/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3c0664

Please sign in to comment.