Sha256: f3809e6f7e89a9336297d365ddcbba68fd61cdcd18379325cccb7aeaaf63c92f

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

module PostmanMta
  class TagsController < ApplicationController
    def create
      render json: tag.create(tag_params).as_json
    end

    def destroy
      render json: tag.destroy(params[:id]).as_json
    end

    private

    def tag
      @tag ||= PostmanMta::Tag.new(params[:conversation_id])
    end

    def tag_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/tags_controller.rb