Support rails accepts_nested_attributes_for
add deprecation warning and update tests
Support serializeAsForm: false with nestedAttributes
skip nested attributes if there aren't any
test polymorphic associations encoded attributes
document encodesNestedAttributesFor
Merge pull request #1074 from batmanjs/rails-nested-attributes

Support rails accepts_nested_attributes_for