Sha256: aadca16494f1d44b57343488991b3e6a98bfcf6bc891ddabb268e2ece2a2c73a

Contents?: true

Size: 341 Bytes

Versions: 17

Compression:

Stored size: 341 Bytes

Contents

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

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

    private

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

    def tag_params
      params.permit!
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
postman_mta-0.2.8 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.2.7 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.2.6 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.2.4 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.2.3 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.2.2 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.2.1 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.2.0 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.1.9 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.1.8 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.1.7 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.1.6 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.1.5 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.1.4 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.1.3 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.1.2 app/controllers/postman_mta/tags_controller.rb
postman_mta-0.1.1 app/controllers/postman_mta/tags_controller.rb