Skip to content

Commit

Permalink
fix dumb bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Sep 2, 2016
1 parent 42367c6 commit 462c4bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions models/Posts.moon
Expand Up @@ -12,9 +12,9 @@ class Posts extends Model
title: (value) =>
if not value or value\len! < 1
return "Must have a title."
if Posts\find title: value
return "A post with that title has already been created."
slug: (value) =>
if Posts\find slug: value
return "A post with too similar a title has already been created."
-- if Posts\find title: value
-- return "A post with that title has already been created."
--slug: (value) =>
-- if Posts\find slug: value
-- return "A post with too similar a title has already been created."
}

0 comments on commit 462c4bb

Please sign in to comment.