From f48c648d64d229f911f2034823e6b1d4d3664661 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Fri, 19 Aug 2011 16:42:28 -0700 Subject: [PATCH] fix sprockets circular error --- lib/middleman/core_extensions/sprockets.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/middleman/core_extensions/sprockets.rb b/lib/middleman/core_extensions/sprockets.rb index a7d75c12..801e18ca 100644 --- a/lib/middleman/core_extensions/sprockets.rb +++ b/lib/middleman/core_extensions/sprockets.rb @@ -46,6 +46,11 @@ module Middleman::CoreExtensions::Sprockets # rescue LoadError # end end + + def javascript_exception_response(exception) + expire_index! + super(exception) + end end # class StylesheetEnvironment < MiddlemanEnvironment @@ -59,5 +64,10 @@ module Middleman::CoreExtensions::Sprockets # stylesheets_path = File.join(File.expand_path(app.views), app.css_dir) # append_path stylesheets_path # end + # + # def css_exception_response(exception) + # expire_index! + # super(exception) + # end # end end \ No newline at end of file