Sha256: 48c82583166cea0bcdc857d402723288b983d29ea7d9981052c05825d0fbb13a
Contents?: true
Size: 661 Bytes
Versions: 59
Compression:
Stored size: 661 Bytes
Contents
module Dorsale module Flyboy class TaskCommentsController < ::Dorsale::Flyboy::ApplicationController def create @task_comment ||= TaskComment.new(task_comment_params) @task_comment.author = current_user @task = @task_comment.task authorize! :update, @task if @task_comment.save redirect_to @task else render "dorsale/flyboy/tasks/show" end end private def permitted_params [:task_id, :progress, :description] end def task_comment_params params.require(:task_comment).permit(permitted_params) end end end end
Version data entries
59 entries across 59 versions & 1 rubygems