Sha256: 0da4711e9f932e92c9c06b6d53a06ff2f194fb8b9d95a5beac0e160f34b9b53e

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

module PostmanMta
  class ConversationsController < ApplicationController
    def index
      render json: conversation.index(filter_params).as_json
    end

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

    private

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

    def filter_params
      params.permit!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postman_mta-0.1.0 app/controllers/postman_mta/conversations_controller.rb