rails/rails — pull request #7968 by josh (2012-10-16 19:24:49+00:00)
Title: Only compile non-js/css under app/assets by default

This has been bugging me forever.

I have a few packaged asset gems that have other loose files under their load path like README.mds. Those get copied over and digested to `public/assets`. This happens more often with bower packages.

The other thing is that these libraries have many optional parts. You don't always want all the images and other stuff copied over unless you say so.

I'm suggesting that we only auto compile "loose" files under `app/asset` paths. This would include railtie gems. So if you do `app/assets` in your gem, those are auto included. `lib/assets` and `vendor/assets` are by hand. I think that this models Rails' default autoloading strategy of `app/` is autoloaded and autorequired, while `lib/` and `vendor/` have to be explicit.

Depends on #7964 being merged first.

/cc @dhh