rails/rails — pull request #5180 by cap10morgan (2012-02-25 23:55:53+00:00)
Title: don't add the source JS asset when in debug mode

This fixes issue #5145 by not adding the source Javascript asset in the Sprockets Rails helper when config.assets.debug is true.

I wanted to find a way to treat the source asset as a Sprockets::Asset and use the #eql? method to compare them, but I didn't see an obvious way to do that. If anyone has any pointers there, please let me know.

That said, this does fix the issue of not including application.js along with the other .js files when config.assets.debug is true.