Sha256: 3d060a95da99b93ebfb6de7cc394a0589fce2c111bd3e5a680d39ad089d6cf86

Contents?: true

Size: 398 Bytes

Versions: 9

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module Quilt
  class UiController < ApplicationController
    include Quilt::ReactRenderable
    layout(false)

    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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
quilt_rails-3.6.0 app/controllers/quilt/ui_controller.rb
quilt_rails-3.5.6 app/controllers/quilt/ui_controller.rb
quilt_rails-3.5.5 app/controllers/quilt/ui_controller.rb
quilt_rails-3.5.4 app/controllers/quilt/ui_controller.rb
quilt_rails-3.5.2 app/controllers/quilt/ui_controller.rb
quilt_rails-3.5.1 app/controllers/quilt/ui_controller.rb
quilt_rails-3.5.0 app/controllers/quilt/ui_controller.rb
quilt_rails-3.4.2 app/controllers/quilt/ui_controller.rb
quilt_rails-3.4.1 app/controllers/quilt/ui_controller.rb