sprockets-rails: Rails.application.assets returns nil on version 3.5.2
I just updated to 3.5.2 from 2.3.3 and it returns nil.
I used that to fetch my assets:
Rails.application.assets['application.scss'].to_s
Is there another way to solve my problem?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (4 by maintainers)
Commits related to this issue
- change logic in application_helper.rb since Rails.application.assets returns nil by default from rails 3.5.2; see https://github.com/rails/sprockets-rails/issues/294 — committed to fdo-labs/nachbarschaftsmarktplatz by deleted user 4 years ago
- Aendert Logik in application helper weil Rails.application.assests NIL standardmaessig zurückgibt siehe https://github.com/rails/sprockets-rails/issues/294 — committed to fairmondo/fairmondo by derstoiker 2 years ago
- Merge branch 'develop' Aendert Logik in application helper weil Rails.application.assests NIL standardmaessig zurückgibt siehe rails/sprockets-rails#294 — committed to fairmondo/fairmondo by derstoiker 2 years ago
The fact that this is not documented and works differently in production and dev is a real downgrade from
find_assets