Class: Debugbar::PollingController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Debugbar::PollingController
- Defined in:
- app/controllers/debugbar/polling_controller.rb
Instance Method Summary collapse
Instance Method Details
#confirm ⇒ Object
10 11 12 13 |
# File 'app/controllers/debugbar/polling_controller.rb', line 10 def confirm RequestBuffer.remove params[:ids] head :ok end |
#poll ⇒ Object
6 7 8 |
# File 'app/controllers/debugbar/polling_controller.rb', line 6 def poll render json: RequestBuffer.all.map(&:to_h) end |