                 boulder.save()
 
 
-mongoose.model('boulder', BoulderSchema)
-Boulder = mongoose.model('boulder')
+mongoose.model 'boulder', BoulderSchema
+Boulder = mongoose.model 'boulder'

    comments: { type : [ String ],   requried : false, default: []       },
    addedBy : { type : ObjectID,     required : false                    }

#BoulderSchema.methods =
BoulderSchema.statics =
    downgrade: (id, gradenr) ->
        Boulder.findOne { _id: id }, (err, boulder) ->

            else
                callback new Error 'Setter not found'

    nicksToSetterIDs: (setter_nicks, callback) ->
        Setter.find { 'nickname': { $in : setter_nicks } }, (err, setters) ->
            ids = []
            for setter in setters
                ids.push setter._id

            callback null, ids


mongoose.model 'setter', SetterSchema
Setter = mongoose.model 'setter'


BoulderSchema = new Schema
