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

Most upvoted comments

The fact that this is not documented and works differently in production and dev is a real downgrade from find_assets