Skip to content

Commit

Permalink
colors model ready
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Sep 2, 2016
1 parent d7f0fe6 commit b761ab1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion models/Colors.moon
@@ -1,3 +1,8 @@
import Model, enum from require "lapis.db.model"

class Crafts extends Model
class Colors extends Model
@constraints: {
code: (value) =>
unless code\len! == 3 or code\len! == 6
return "Invalid hex code. (Must be 3 or 6 characters long.)"
}

0 comments on commit b761ab1

Please sign in to comment.