code: function(view, model, options) {
        if (model.associatedViews) {
          model.associatedViews.push(view);
        } else {
          model.associatedViews = [view];
        }
        _.extend(model, mixin(view, options));
      }
docs: Helper to mix in validation on a model. Stores the view in the associated views array.