Sha256: 951c4145d310dc58359d92bab899ff38f0b3f13dcc1585ad6f8e00dfac999092
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
module PostmanMta class LabelsController < ApplicationController def create render json: label.create(label_params).as_json end def destroy render json: label.destroy(params[:id]).as_json end private def label @label ||= PostmanMta::Label.new(params[:conversation_id]) end def label_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/labels_controller.rb |