Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.412 kb
_ = require 'underscore'
mongoose = require 'mongoose'
env = require '../config/env'
ServiceSchema = module.exports = new mongoose.Schema
name: String
description: String
ServiceSchema.static 'sorted', (callback) ->
Service.find (error, services) ->
return callback(error) if error
callback null, _.sortBy(services, (s) ->
Service = mongoose.model 'Service', ServiceSchema
Jump to Line
Something went wrong with that request. Please try again.