rails/rails — pull request #3361 by macmartine (2011-10-18 17:18:48+00:00)
Title: - Resolve issues #3333 and #3348 : Asset pipeline is trying to compute public path of file contents

- Resolve issues #3333 and #3348 : Asset pipeline is trying to compute public path of file contents

This issue only occurs in Production mode when 'config.assets.debug = true'

In this case, the asset pipeline uses the contents of the css file as the pathname causing an error that is quite hard to track down. This only occurs with certain css file contents, that seemed pretty arbitrary when I tried to narrow it down.

I have not added any tests for this because I'm not sure how to mimic the Production environment in a test. I'd be happy to do it if anyone can give me some guidance on how to accomplish that. The existing tests however, still all pass.