Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Closed
lighthouse-import opened this Issue May 16, 2011 · 1 comment

Comments

Projects
None yet
1 participant

Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6707
Created by Adam Holt - 2011-04-17 15:40:02 UTC

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 :)

Attachments saved to Gist: http://gist.github.com/971840

jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment