Class: WcoEmail::ApiController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- WcoEmail::ApiController
- Defined in:
- app/controllers/wco_email/api_controller.rb
Instance Method Summary collapse
Instance Method Details
#create_email_message ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/wco_email/api_controller.rb', line 7 def puts! params, 'params' stub = WcoEmail::MessageStub.find_or_create_by({ bucket: params[:bucket], object_key: params[:object_key], }) WcoEmail::MessageIntakeJob.perform_async( stub.id.to_s ) render status: :ok, json: { status: :ok } end |