toy / image_optim_rails

Optimize rails assets using image_optim
MIT License
56 stars 3 forks source link

Error while using in Rails 5 #2

Closed zsavajji closed 7 years ago

zsavajji commented 7 years ago

Hi, i installed the gem as documented, and provided configuration, but when i include an image the following error gets produced: undefined method 'call' for :image_optim:Symbol

Is the gem not compatible with sprockets 4?

Thank you!

toy commented 7 years ago

Thanks for reporting, I'll look into that

zsavajji commented 7 years ago

Whoops, not solved, just made a mistake :D Thank you for checking it out!

toy commented 7 years ago

API change in sprockets, please check if branch sprockets4 works for you.

zsavajji commented 7 years ago

Will do tomorrow and report back, thanks!

zsavajji commented 7 years ago

Yes, it works correctly in my Rails 5.1 application, thank you!

toy commented 7 years ago

Just released v0.3.0