Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unused option from FormHelper#fields_for [#641 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
commit 938caf4e6b2448b45939d36824794ea0aa5e1804 1 parent e23156e
Clemens Kofler clemens authored josh committed
Showing with 0 additions and 4 deletions.
  1. +0 −4 actionpack/lib/action_view/helpers/form_helper.rb
4 actionpack/lib/action_view/helpers/form_helper.rb
View
@@ -304,10 +304,6 @@ def fields_for(record_or_name_or_array, *args, &block)
when String, Symbol
object_name = record_or_name_or_array
object = args.first
- when Array
- object = record_or_name_or_array.last
- object_name = ActionController::RecordIdentifier.singular_class_name(object)
- apply_form_for_options!(record_or_name_or_array, options)
else
object = record_or_name_or_array
object_name = ActionController::RecordIdentifier.singular_class_name(object)
Please sign in to comment.
Something went wrong with that request. Please try again.