toy / image_optim

Optimize images using multiple utilities
https://github.com/toy/image_optim
MIT License
1.52k stars 109 forks source link

Run image compress even if Rails.application.assets is nil #120

Closed iggant closed 8 years ago

iggant commented 8 years ago

Since https://github.com/rails/sprockets-rails/commit/d7c7ee19991c565eb77ee143be2d009ba4472122#diff-b295f4f07d2e863f15e53eb2047cfd1f we can't rely on app.assets for register_preprocessor

When compile=false and we precompile assets register_preprocessor?(app) method will always return false