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
14 15 16 17 |
# File 'app/controllers/debugbar/polling_controller.rb', line 14 def confirm RequestBuffer.remove params[:ids] head :ok end |
#get ⇒ Object
6 7 8 |
# File 'app/controllers/debugbar/polling_controller.rb', line 6 def get render json: RequestBuffer.get(params[:id]) end |
#poll ⇒ Object
10 11 12 |
# File 'app/controllers/debugbar/polling_controller.rb', line 10 def poll render json: RequestBuffer.to_h end |