app/controllers/quilt/ui_controller.rb in quilt_rails-3.4.0 vs app/controllers/quilt/ui_controller.rb in quilt_rails-3.4.1

- old
+ new

@@ -3,14 +3,19 @@ module Quilt class UiController < ApplicationController include Quilt::ReactRenderable layout(false) - rescue_from(Quilt::ReactRenderable::ReactServerNoResponseError) do - render(:react_render_error, status: :internal_server_error) - end - def index render_react + rescue Quilt::ReactRenderable::ReactServerNoResponseError + sleep(1) + retry if execution_count < 10 + raise + end + + def execution_count + @times ||= 0 + @times = @times.next end end end