powmedia/backbone-forms — pull request #107 by astjohn (2012-08-16 19:33:19+00:00)
Title: Allow a NestedModel's model attribute to be specified as a string or an object

I struggled for a while trying to get NestedModels to work properly. The reason it wasn't working was because my parent model was declared before the nested one. This problem originated from the name of my source files and the fact that I'm using Rails' asset pipeline.

This change allows a model to be specified as a string so that model class declaration order is not important. It should be backwards compatible.

Unfortunately, I have not included tests.