rails/sprockets-rails — pull request #36 by brandon-beacher (2013-01-13 17:42:43+00:00)
Title: Ensure precompile setting from app is applied to rake task.

I was not able to use the precompile setting to solve the situation described here:

#34

This is due to the details below:

Rails calls load_tasks prior to the app's configure block.
This results in the sprockets rake task being initialized without the app's assets.precompile setting.

This change lazily evaluates the assets setting on the sprockets rake task so they will reflect the eventual assets.precompile setting.

With this change, loose assets in lib or vendor from a legacy gem will now be picked up if they are explicitly specified in the precompile setting.

This is dependent upon https://github.com/sstephenson/sprockets/pull/404