Merge branch 'master' of github.com:Deployd/Deployd

This commit is contained in:
Jeff Cross
2011-11-26 17:19:20 -07:00
3 changed files with 12 additions and 3 deletions

View File

@@ -366,6 +366,7 @@ Model = module.exports = emitter.spawn({
description: this.description,
plugin: this.plugin,
collection: this.collection,
name: this.name || this.collection,
allowed: this.allowed
})
.notify(function(json) {

View File

@@ -1,5 +1,5 @@
var Settings = require('../settings/settings')
, Setting = require('../settings/settings')
, Setting = require('../settings/setting')
, Model = require('../../model')
;
@@ -22,10 +22,16 @@ var refresh = module.exports.refresh = function() {
// initial refresh
refresh();
// create or update general graph settings
// create or update general models settings
Setting
.spawn()
.set({plugin: 'models', name: 'models'})
.unlock()
.set({
plugin: 'models'
})
.notify(function(json) {
console.log(json);
})
.save()
;

View File

@@ -6,7 +6,9 @@ module.exports = Model.spawn({
plugin: 'settings',
description: {
name: {type: 'string', unique: true, required: true},
plugin: 'string',
collection: 'string',
description: 'object'
},