mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Cleanup instantiate builder method definition
This commit is contained in:
parent
7e6145b4a2
commit
6871cda693
1 changed files with 2 additions and 5 deletions
|
@ -243,7 +243,7 @@ module ActionView
|
|||
#
|
||||
# === Setting the method
|
||||
#
|
||||
# You can force the form to use the full array of HTTP verbs by setting
|
||||
# You can force the form to use the full array of HTTP verbs by setting
|
||||
#
|
||||
# :method => (:get|:post|:put|:delete)
|
||||
#
|
||||
|
@ -898,10 +898,7 @@ module ActionView
|
|||
|
||||
private
|
||||
|
||||
def instantiate_builder(record, *args, &block)
|
||||
options = args.extract_options!
|
||||
record_object = args.shift
|
||||
|
||||
def instantiate_builder(record, record_object, options, &block)
|
||||
case record
|
||||
when String, Symbol
|
||||
object = record_object
|
||||
|
|
Loading…
Reference in a new issue