Skip to content

Instantly share code, notes, and snippets.

@glassesfactory
Created December 1, 2013 17:13
Show Gist options
  • Save glassesfactory/7736893 to your computer and use it in GitHub Desktop.
Save glassesfactory/7736893 to your computer and use it in GitHub Desktop.
すとりくとな Model をつくろうとしてるおじさん
class AritcleModel extends ORMModel
kls : AritcleModel
#どっちがいいかなー
#こっちと
table : [
"id" : "int"
"title" : "string"
"body" : "string"
"more" : "string"
"created_at" : "date"
"updated_at" : "date"
]
# こっち
id : null
title : ""
body : ""
more : ""
createdAt : null
updatedAt : null
constructor:(properties)->
super(properties)
do ->
ORMModel.extends AritcleModel
return AritcleModel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment