Sha256: ffff1b5c4363e65f89bad011d71990abd3a1236e429257b3a369145455bba3ae

Contents?: true

Size: 512 Bytes

Versions: 5

Compression:

Stored size: 512 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

      def move
        render conversation.move(permitted_params)
      end

      private

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

      def permitted_params
        params.permit!
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
postman_mta-0.2.8 app/controllers/postman_mta/archive/conversations_controller.rb
postman_mta-0.2.7 app/controllers/postman_mta/archive/conversations_controller.rb
postman_mta-0.2.6 app/controllers/postman_mta/archive/conversations_controller.rb
postman_mta-0.2.4 app/controllers/postman_mta/archive/conversations_controller.rb
postman_mta-0.2.3 app/controllers/postman_mta/archive/conversations_controller.rb