-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add :contact_form_id
to messages
params in messages_controller
#2403
Conversation
… certain attributes that developers may remove. Replace the templates with a single file.
… contact_form_mail.text.erb is a true empty template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Instead of removing the mailer templates we should update the documentation. Also a test for the mailers controller would be necessary.
Note: The PR title is not very descriptive and the commit message for the contact_form_id
misses a "why" in the commit body. It would be helpful to have a goog PR title and for future selfs, to have a good git commit message.
:contact_form_id
to messages
params in messages_controller
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
What is this pull request for?
Messages controller fix:
From:
params.require(:message).permit(*mailer_config["fields"])
To:
params.require(:message).permit(*mailer_config["fields"], :contact_form_id)
Why
The
Message
model requires a:contact_form_id
to lookup anElement
Closes #2402
Notable changes
contact_form_mail
templates and replace with a single, truly bare template.Checklist