Skip to content

Conversation

ghiculescu
Copy link
Member

@ghiculescu ghiculescu commented Jun 21, 2023

ref: #48477

Using forms inside emails is not common, but it's possible, and it's also possible to share views between controllers and mailers. Currently if a controller sets a default_form_builder that's different from the global config, mailers that use the same views will not default to the same FormBuilder. To fix this, this PR adds a default_form_builder method for mailers that does the same thing as its controller sibling.

@ghiculescu ghiculescu force-pushed the am-default-form-builder branch from 6fdba7e to a071262 Compare June 21, 2023 08:19
@zzak zzak added this to the 7.1.0 milestone Sep 23, 2023
@ghiculescu ghiculescu force-pushed the am-default-form-builder branch from a071262 to 4c4fcce Compare September 25, 2023 00:21
Fixes rails#48477

Using forms inside emails is not common, but it's possible, and it's also possible to share views between controllers and mailers. Currently if a controller sets a `default_form_builder` that's different from the global config, mailers that use the same views will not default to the same `FormBuilder`. To fix this, this PR adds a `default_form_builder` method for mailers that does the same thing as its controller sibling.
@rafaelfranca rafaelfranca force-pushed the am-default-form-builder branch from 4c4fcce to 9a2cf33 Compare September 25, 2023 20:33
@rafaelfranca rafaelfranca merged commit 38ce7fa into rails:main Sep 25, 2023
@ghiculescu ghiculescu deleted the am-default-form-builder branch September 25, 2023 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants