make sure sprockets gets cleared out when done

This commit is contained in:
John Bintz 2012-04-12 19:24:43 -04:00
parent 5228619a98
commit 87771b070c
2 changed files with 6 additions and 0 deletions

View File

@ -95,6 +95,8 @@ module Flowerbox
raise RunnerDiedError.new if attempts == 0 raise RunnerDiedError.new if attempts == 0
Flowerbox.server = nil Flowerbox.server = nil
ensure
@sprockets.reset!
end end
end end

View File

@ -69,6 +69,10 @@ module Flowerbox
raise LogicalPathNotFoundError.new("Could not find logical path for #{asset_path}") raise LogicalPathNotFoundError.new("Could not find logical path for #{asset_path}")
end end
def reset!
@environment.send(:expire_index!)
end
end end
end end