Sha256: b07176d75a4ddcc2e27a7b55030e25e90afa7aa8c883c1b0b83e9ad706ae3b57

Contents?: true

Size: 344 Bytes

Versions: 17

Compression:

Stored size: 344 Bytes

Contents

module PostmanMta
  class MessagesController < ApplicationController
    def show
      render message.find(params[:token])
    end

    def create
      render message.create(message_params)
    end

    private

    def message
      @message ||= PostmanMta::Message.new
    end

    def message_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/messages_controller.rb
postman_mta-0.2.7 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.2.6 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.2.4 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.2.3 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.2.2 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.2.1 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.2.0 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.1.9 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.1.8 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.1.7 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.1.6 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.1.5 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.1.4 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.1.3 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.1.2 app/controllers/postman_mta/messages_controller.rb
postman_mta-0.1.1 app/controllers/postman_mta/messages_controller.rb