Class: Debugbar::PollingController

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

Instance Method Summary collapse

Instance Method Details

#confirmObject



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

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

#pollObject



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

def poll
  render json: RequestBuffer.all.map(&:to_h)
end