Sha256: 57548dda507c73ae4630ddbb0b76180793b60cbf9121dee8ca1f1e49bc229989

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

module PostmanMta
  module Archive
    class ConversationsController < ApplicationController
      def index
        render conversation.index(permitted_params)
      end

      def show
        render conversation.find(params[:id])
      end

      private

      def conversation
        @conversation ||= PostmanMta::Archive::Conversation.new
      end

      def permitted_params
        params.permit!
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postman_mta-0.2.2 app/controllers/postman_mta/archive/conversations_controller.rb