Sha256: 3e0c48f00bd956091b4683c935c7144cd71d4b65b53947dcd65fffe36857151f
Contents?: true
Size: 492 Bytes
Versions: 142
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/letters" module Renalware module Letters class RejectedLettersController < Letters::BaseController before_action :load_patient def create letter = @patient.letters.pending.find(params[:letter_id]) draft_letter = letter.reject(by: current_user) draft_letter.save! redirect_to patient_letters_letter_path(@patient, draft_letter), notice: t(".success") end end end end
Version data entries
142 entries across 142 versions & 1 rubygems