emilioforrer / haml_coffee_assets

Haml Coffee templates in the Rails asset pipeline or as Sprockets engine.
https://rubygems.org/gems/haml_coffee_assets
MIT License
438 stars 145 forks source link

find_asset doesn't work when config.assets.compile = false #165

Closed mhuggins closed 3 years ago

mhuggins commented 7 years ago

We're upgrading from Rails 4.1 to 4.2, and haml_coffee_assets breaks due to config.assets.compile = false being set in our application's environment. When that is false, Rails.application.assets returns nil, which means that find_asset doesn't work.

The alternative appears to be to use Rails.application.assets_manifest, but it's not completely synonymous since you need to resolve assets, which was provided for free in the find_assets method.

TheKidCoder commented 7 years ago

Do any other assets appear in your Rails.application.assets hash? As I understand it, this is rails issue and not specific to haml_coffee

mathieujobin commented 3 years ago

I am taking a guess this is outdated. please re-open if this is still an issue