Class: Quilt::UiController

Inherits:
ApplicationController
  • Object
show all
Includes:
ReactRenderable
Defined in:
app/controllers/quilt/ui_controller.rb

Instance Method Summary collapse

Methods included from ReactRenderable

#render_react

Instance Method Details

#execution_countObject



16
17
18
19
# File 'app/controllers/quilt/ui_controller.rb', line 16

def execution_count
  @times ||= 0
  @times = @times.next
end

#indexObject



8
9
10
11
12
13
14
# File 'app/controllers/quilt/ui_controller.rb', line 8

def index
  render_react
rescue Quilt::ReactRenderable::ReactServerNoResponseError
  sleep(1)
  retry if execution_count < 10
  raise
end