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

Version Path
renalware-core-2.0.16 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.15 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.14 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.13 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.12 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.11 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.9 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.8 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.7 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.5 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.4 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.3 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.2 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.1 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.0 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.0.pre.rc13 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.0.pre.rc11 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.0.pre.rc10 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.0.pre.rc9 app/controllers/renalware/letters/rejected_letters_controller.rb
renalware-core-2.0.0.pre.rc8 app/controllers/renalware/letters/rejected_letters_controller.rb