Backport of #1778 (fix nested fields_for when Hash-based model is passed) #1982

Merged
merged 1 commit into from Jul 6, 2011

Conversation

Projects
None yet
2 participants
@spohlenz
Contributor

spohlenz commented Jul 6, 2011

Backport #1778 to 3-1-stable.

Test for extractable_options? within nested fields_for.
This fixes an error when a record object that is a subclass of Hash is
passed to fields_for, which is incorrectly interpreted as field options.

spastorino added a commit that referenced this pull request Jul 6, 2011

Merge pull request #1982 from spohlenz/backport-1778
Backport of #1778 (fix nested fields_for when Hash-based model is passed)

@spastorino spastorino merged commit d5bc701 into rails:3-1-stable Jul 6, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment