diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/action_mailroom/inbound_emails_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/action_mailroom/inbound_emails_controller.rb b/app/controllers/action_mailroom/inbound_emails_controller.rb index e5970b38ec..2aa2a89323 100644 --- a/app/controllers/action_mailroom/inbound_emails_controller.rb +++ b/app/controllers/action_mailroom/inbound_emails_controller.rb @@ -4,7 +4,7 @@ class ActionMailroom::InboundEmailsController < ActionController::Base before_action :require_rfc822_message def create - ActionMailroom::InboundEmail.create!(raw_email: params[:message]) + ActionMailroom::InboundEmail.create_from_raw_email!(params[:message]) head :created end |