Requiring assets from gem doe no longer work in Rails 4.2
I have a Rails 4.1 (.10) application that I'm trying to upgrade to Rails 4.2 (.1), but I'm having a hard time getting it.
The problem has to do with how assets are loaded from a gem that I use to share assets across multiple applications.
In my gem I have the following code
In my Rails application, I have the following code
//= require my_js //= require_tree ./application
Everything works fine in Rails 4.1.10 and Sprockets 2.12.3, but when I upgrade to Rails 4.2.1 and Sprockets 3.0.1, I get below error
Should I claim my supplier's assets differently under Sprockets 3+?
source to share