1
0
Fork 0
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:
Carlos Antonio da Silva 2011-05-14 17:23:34 -03:00
parent 7e6145b4a2
commit 6871cda693

View file

@ -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