sn-models package
This commit is contained in:
@@ -33,6 +33,7 @@ class ModelManager extends SFModelManager {
|
||||
var tag = _.find(this.tags, {title: title})
|
||||
if(!tag) {
|
||||
tag = this.createItem({content_type: "Tag", content: {title: title}});
|
||||
tag.setDirty(true);
|
||||
this.addItem(tag);
|
||||
}
|
||||
return tag;
|
||||
|
||||
Reference in New Issue
Block a user