From 6871cda693a9a3e5d26ab0884f19132064acbf0a Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 14 May 2011 17:23:34 -0300 Subject: [PATCH] Cleanup instantiate builder method definition --- actionpack/lib/action_view/helpers/form_helper.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index b6bb90a3ce..bfd04f163d 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -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