Class: Debugbar::PollingController

Inherits:
ApplicationController show all
Defined in:
app/controllers/debugbar/polling_controller.rb

Instance Method Summary collapse

Instance Method Details

#confirmObject



14
15
16
17
# File 'app/controllers/debugbar/polling_controller.rb', line 14

def confirm
  RequestBuffer.remove params[:ids]
  head :ok
end

#getObject



6
7
8
# File 'app/controllers/debugbar/polling_controller.rb', line 6

def get
  render json: RequestBuffer.get(params[:id])
end

#pollObject



10
11
12
# File 'app/controllers/debugbar/polling_controller.rb', line 10

def poll
  render json: RequestBuffer.to_h
end