Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.404 kB
Todo = ->
@defineProperties
title:
type: 'string'
required: true
id:
type: 'string'
required: true
status:
type: 'string'
required: true
@validatesPresent 'title'
@validatesLength 'title', min: 5
@validatesWithFunction 'status', (status) ->
status == 'open' || status == 'done'
@adapter = 'mongo'
Todo = geddy.model.register 'Todo', Todo
Jump to Line
Something went wrong with that request. Please try again.