Sha256: 7907a32206ab988dd34f63150ac07757d1afec2d71d25a8903544540e1fc6a21

Contents?: true

Size: 508 Bytes

Versions: 16

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

module Emailbutler
  module Ui
    class MessagesController < Emailbutler::UiController
      before_action :find_message

      def update
        ::Emailbutler.resend_message(@message)
        redirect_to ui_index_path
      end

      def destroy
        ::Emailbutler.destroy_message(@message)
        redirect_to ui_index_path
      end

      private

      def find_message
        @message = ::Emailbutler.find_message_by(uuid: params[:id])
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
emailbutler-0.8.8 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.8.7 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.8.6 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.8.5 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.8.4 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.8.3 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.8.2 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.8.1 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.7.6 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.7.5 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.7.4 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.7.3 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.7.2 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.7.1 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.7.0 app/controllers/emailbutler/ui/messages_controller.rb
emailbutler-0.6.1 app/controllers/emailbutler/ui/messages_controller.rb