Skip to content

Commit 6871cda

Browse files
Cleanup instantiate builder method definition
1 parent 7e6145b commit 6871cda

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

actionpack/lib/action_view/helpers/form_helper.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def convert_to_model(object)
243243
#
244244
# === Setting the method
245245
#
246-
# You can force the form to use the full array of HTTP verbs by setting
246+
# You can force the form to use the full array of HTTP verbs by setting
247247
#
248248
# :method => (:get|:post|:put|:delete)
249249
#
@@ -898,10 +898,7 @@ def range_field(object_name, method, options = {})
898898

899899
private
900900

901-
def instantiate_builder(record, *args, &block)
902-
options = args.extract_options!
903-
record_object = args.shift
904-
901+
def instantiate_builder(record, record_object, options, &block)
905902
case record
906903
when String, Symbol
907904
object = record_object

0 commit comments

Comments
 (0)