Sha256: f9e3e97b083ad576d838a67fec9425f1c4702c013cbc283dc62bbaa170811906
Contents?: true
Size: 779 Bytes
Versions: 4
Compression:
Stored size: 779 Bytes
Contents
module ThinkFeelDoEngine module Participants # Updates the completion of assigned tasks for a participant class TaskStatusController < ApplicationController before_action :authenticate_participant! rescue_from ActiveRecord::RecordNotFound, with: :record_not_found def update @task_status = current_participant .active_membership .task_statuses .find(params[:id]) if @task_status.engagements.build && @task_status.mark_complete render nothing: true, status: 200 else render nothing: true, status: 400 end end private def record_not_found render nothing: true, status: 404 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems