Module: ActionMailer::FormBuilder
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::Concern
|
|
Defined in: | actionmailer/lib/action_mailer/form_builder.rb |
Overview
Override the default form builder for all views rendered by this mailer and any of its descendants. Accepts a subclass of ::ActionView::Helpers::FormBuilder
.
While emails typically will not include forms, this can be used by views that are shared between controllers and mailers.
For more information, see ::ActionController::FormBuilder
.
Class Method Summary
::ActiveSupport::Concern
- Extended
class_methods | Define class methods from given block. |
included | Evaluate given block in context of base class, so that you can write class macros here. |
prepended | Evaluate given block in context of base class, so that you can write class macros here. |
append_features, prepend_features |
Instance Method Summary
-
#default_form_builder
Default form builder for the mailer.
DSL Calls
included
[ GitHub ]17 18 19
# File 'actionmailer/lib/action_mailer/form_builder.rb', line 17
included do class_attribute :_default_form_builder, instance_accessor: false end
Instance Method Details
#default_form_builder
Default form builder for the mailer
# File 'actionmailer/lib/action_mailer/form_builder.rb', line 33
def default_form_builder self.class._default_form_builder end