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

Version Path
renalware-core-2.1.1 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.1.0 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.167 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.166 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.165 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.164 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.163 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.162 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.161 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.160 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.159 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.158 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.157 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.156 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.155 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.153 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.152 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.151 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.149 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.148 app/controllers/renalware/letters/rejected_letters_controller.rb