Skip to content

Commit fd766e3

Browse files
Earlopainp8
andcommitted
Fix docs for default_form_builder
Passing a instance is not what you're supposed to do here. The instance will instead be passed to you in `form_with` and similar. Co-authored-by: Petrik de Heus <[email protected]>
1 parent 6d30780 commit fd766e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actionmailer/lib/action_mailer/form_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module ClassMethods
2323
# in the views rendered by this mailer and its subclasses.
2424
#
2525
# ==== Parameters
26-
# * <tt>builder</tt> - Default form builder, an instance of ActionView::Helpers::FormBuilder
26+
# * <tt>builder</tt> - Default form builder. Accepts a subclass of ActionView::Helpers::FormBuilder
2727
def default_form_builder(builder)
2828
self._default_form_builder = builder
2929
end

actionpack/lib/action_controller/form_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module ClassMethods
4040
# rendered by this controller and its subclasses.
4141
#
4242
# #### Parameters
43-
# * `builder` - Default form builder, an instance of
43+
# * `builder` - Default form builder. Accepts a subclass of
4444
# ActionView::Helpers::FormBuilder
4545
def default_form_builder(builder)
4646
self._default_form_builder = builder

0 commit comments

Comments
 (0)