aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2011-05-14 17:23:34 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2011-05-14 17:23:34 -0300
commit6871cda693a9a3e5d26ab0884f19132064acbf0a (patch)
treea11dcb36a2ecd046d677f9d4da4a6db6120b302d /actionpack/lib/action_view/helpers/form_helper.rb
parent7e6145b4a2108a4ad94af02c3070789c03ccbd00 (diff)
downloadrails-6871cda693a9a3e5d26ab0884f19132064acbf0a.tar.gz
rails-6871cda693a9a3e5d26ab0884f19132064acbf0a.tar.bz2
rails-6871cda693a9a3e5d26ab0884f19132064acbf0a.zip
Cleanup instantiate builder method definition
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb7
1 files 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