This project is archived and is in readonly mode.

#6707 new
Adam Holt

[Patch] rake assets:compile errors when asset pipelining disabled

Reported by Adam Holt | April 17th, 2011 @ 04:40 PM

Currently in master, running rake assets:compile with config.assets.enabled = false results in

undefined method `precompile' for nil:NilClass

This patch raises an error if asset pipelining is disabled.

I chose to raise, as i think if this task was part of a deploy process (and i think that would be the general use case), and assets were accidentally turned off, you would want it to abort the deploy.

I would love feedback if you think this is the wrong approach :)

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages