Class: Adhoq::ExecutionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/adhoq/executions_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

before_action

Instance Method Details

#createObject



9
10
11
# File 'app/controllers/adhoq/executions_controller.rb', line 9

def create
  async_execution? ? asynced_create : synced_create
end

#showObject



3
4
5
6
7
# File 'app/controllers/adhoq/executions_controller.rb', line 3

def show
  @execution = current_query.executions.where(id: params[:id], report_format: params[:format]).first!

  respond_report(@execution.report)
end