Method: CommandProposal::TasksController#show
- Defined in:
- app/controllers/command_proposal/tasks_controller.rb
#show ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'app/controllers/command_proposal/tasks_controller.rb', line 24 def show @task = ::CommandProposal::Task.find_by!(friendly_id: params[:id]) if @task.console? @lines = @task.lines @iteration = @task.first_iteration return # Don't execute the rest of the function end if params.key?(:iteration) @iteration = @task.iterations.find(params[:iteration]) else @iteration = @task.current_iteration end end |