Sha256: d47360edd4d827eea765a0dff55824a7ec198376258d3bb970301fdab2c899e6
Contents?: true
Size: 750 Bytes
Versions: 4
Compression:
Stored size: 750 Bytes
Contents
require_dependency 'tasuku/application_controller' module Tasuku class Taskables::Verifications::ConfirmationsController < ApplicationController include Concerns::Redirectable before_action :set_verification def create confirmation = @verification.confirmations.new confirmation.author = send Tasks.config.author respond_to do |format| if confirmation.save format.html { redirect_to redirect_path_for(confirmation) } else format.html { render text: 'Failed to confirm verification', status: :unprocessable_entity } end end end private def set_verification @verification = Taskables::Verification.find params[:verification_id] end end end
Version data entries
4 entries across 4 versions & 1 rubygems