Class: Projects::MergeRequests::ContentController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/projects/merge_requests/content_controller.rb

Constant Summary collapse

FAST_POLLING_INTERVAL =
10.seconds.in_milliseconds
SLOW_POLLING_INTERVAL =
5.minutes.in_milliseconds

Instance Method Summary collapse

Instance Method Details

#cached_widgetObject


24
25
26
27
28
29
30
# File 'app/controllers/projects/merge_requests/content_controller.rb', line 24

def cached_widget
  respond_to do |format|
    format.json do
      render json: serializer(MergeRequestPollCachedWidgetEntity)
    end
  end
end

#widgetObject


16
17
18
19
20
21
22
# File 'app/controllers/projects/merge_requests/content_controller.rb', line 16

def widget
  respond_to do |format|
    format.json do
      render json: serializer(MergeRequestPollWidgetEntity)
    end
  end
end