Module: ActionMailer::FormBuilder

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/action_mailer/form_builder.rb

Overview

Action Mailer Form Builder

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.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#default_form_builderObject

Default form builder for the mailer



33
34
35
# File 'lib/action_mailer/form_builder.rb', line 33

def default_form_builder
  self.class._default_form_builder
end