make sure sprockets gets cleared out when done
This commit is contained in:
parent
5228619a98
commit
87771b070c
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user