Sha256: f648fbbf69fed9865240660ff572de41e3e3c1920fc705c4f6a34406e4344518
Contents?: true
Size: 461 Bytes
Versions: 35
Compression:
Stored size: 461 Bytes
Contents
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
35 entries across 35 versions & 1 rubygems