diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-27 17:58:30 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-27 17:58:30 -0700 |
commit | 087cbf12f4c2fc3bd43aadd6dd3c60ede302703d (patch) | |
tree | 97239eeb5524162e9ed4e6ad58e074e209bcd348 /app | |
parent | e1486aa3535005175ae9859daba44b1e1d67f1d1 (diff) | |
download | rails-087cbf12f4c2fc3bd43aadd6dd3c60ede302703d.tar.gz rails-087cbf12f4c2fc3bd43aadd6dd3c60ede302703d.tar.bz2 rails-087cbf12f4c2fc3bd43aadd6dd3c60ede302703d.zip |
Convert from Parameters object
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/rails/conductor/action_mailroom/inbound_emails_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/rails/conductor/action_mailroom/inbound_emails_controller.rb b/app/controllers/rails/conductor/action_mailroom/inbound_emails_controller.rb index 2281f5bcae..0f8ebb00a3 100644 --- a/app/controllers/rails/conductor/action_mailroom/inbound_emails_controller.rb +++ b/app/controllers/rails/conductor/action_mailroom/inbound_emails_controller.rb @@ -17,7 +17,7 @@ class Rails::Conductor::ActionMailroom::InboundEmailsController < Rails::Conduct private def new_mail - Mail.new params.require(:mail).permit(:from, :to, :cc, :bcc, :subject, :body) + Mail.new params.require(:mail).permit(:from, :to, :cc, :bcc, :subject, :body).to_h end def create_inbound_email(mail) |