Sha256: ac3ed6721d4d88c2f556fa60cda5c5b9065cdb04bb75fdebbe960b7bc5906a34

Contents?: true

Size: 357 Bytes

Versions: 10

Compression:

Stored size: 357 Bytes

Contents

module PostmanMta
  class LabelsController < ApplicationController
    def create
      render label.create(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

10 entries across 10 versions & 1 rubygems

Version Path
postman_mta-0.2.0 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.1.9 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.1.8 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.1.7 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.1.6 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.1.5 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.1.4 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.1.3 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.1.2 app/controllers/postman_mta/labels_controller.rb
postman_mta-0.1.1 app/controllers/postman_mta/labels_controller.rb