Sha256: c250f7958548f5bcfff6ae06a88a9a7ff0bccbe30d9171558d6987d06035f3df

Contents?: true

Size: 496 Bytes

Versions: 7

Compression:

Stored size: 496 Bytes

Contents

module PostmanMta
  class LabelsController < ApplicationController
    def index
      render label.index(label_params)
    end

    def create
      render label.create(label_params)
    end

    def update
      render label.update(params[:id], label_params)
    end

    def destroy
      render label.destroy(params[:id])
    end

    private

    def label
      @label ||= PostmanMta::Label.new(params[:conversation_id])
    end

    def label_params
      params.permit!
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
postman_mta-0.2.8 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.2.7 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.2.6 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.2.4 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.2.3 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.2.2 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.2.1 app/controllers/postman_mta/labels_controller.rb