chriseppstein/compass — pull request #610 by coderanger (2011-11-02 00:50:26+00:00)
Title: Handle Rails adding methods to nil that it really shouldn't.

This might only affect Rails 2, but it shouldn't hurt elsewhere (all tests pass).

The issue is that Rails is mixing in a #cache (https://github.com/rails/rails/blob/v2.3.11/actionpack/lib/action_view/helpers/cache_helper.rb) so globally that nil.respond_to?(:cache) is true, but this method doesn't make sense to call from outside a request (in my case, from a rake task).