fix for the stream not loading; we were creating status_message objects that were simply wrappers around posts. in the lastest codebase, status_messages in js are what we are using for the new post form, so we need to just tell our post collection to stop making status_messages directly

This commit is contained in:
Maxwell Salzberg 2012-03-28 10:37:08 -07:00
parent 0e4f9ae98d
commit 9008e661d7

View file

@ -2,7 +2,7 @@ app.collections.Posts = Backbone.Collection.extend({
url : "/posts", url : "/posts",
model: function(attrs, options) { model: function(attrs, options) {
var modelClass = app.models[attrs.post_type] || app.models.Post var modelClass = app.models.Post
return new modelClass(attrs, options); return new modelClass(attrs, options);
}, },