From 9008e661d71f826d90ae37f795ef09f0897ac970 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Wed, 28 Mar 2012 10:37:08 -0700 Subject: [PATCH] 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 --- public/javascripts/app/collections/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/app/collections/posts.js b/public/javascripts/app/collections/posts.js index 37fb1a206..9f6c54e5e 100644 --- a/public/javascripts/app/collections/posts.js +++ b/public/javascripts/app/collections/posts.js @@ -2,7 +2,7 @@ app.collections.Posts = Backbone.Collection.extend({ url : "/posts", model: function(attrs, options) { - var modelClass = app.models[attrs.post_type] || app.models.Post + var modelClass = app.models.Post return new modelClass(attrs, options); },