1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailbox/test
David Jones c6c53a02a5 Permit attachments in mailbox conductor params
Prior to this commit, when adding attachments to an inbound email
through the conductor, the log would warn of an unpermitted parameter
with the message:

> Unpermitted parameter: :attachments. Context: { }

Also, if an application had the setting:

  config.action_controller.action_on_unpermitted_parameters = :raise

it would raise an error, because the attachments are not a permitted
parameter.

This commit also sets `action_on_unpermitted_parameters` to `:raise`
for the action mailbox test suite, so that tests are run in most
restrictive setting available, to prevent future unpermitted parameters
from being passed by conductor actions.

Co-authored-by: Dana Henke <danapalazzo1@gmail.com>
2021-07-02 16:56:16 -04:00
..
controllers Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00
dummy Permit attachments in mailbox conductor params 2021-07-02 16:56:16 -04:00
fixtures/files Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00
generators Module#const_set is a public method 2020-09-15 17:19:37 +09:00
jobs
unit Problem: ActionMailbox uses default ActiveStorage service 2021-06-30 09:33:29 -07:00
test_helper.rb Fix backtraces for generated plugin tests 2020-10-07 15:40:56 -05:00