Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val opts = User.currentUser match {
- case Full(u: User) => OrderBy(Post.publishDate, Ascending))
- case _ => By(Post.published, true), By_<(Post.publishDate, new Date), OrderBy(Post.publishDate, Ascending)
- }
- object posts extends MappedManyToMany(PostTags, PostTags.tag, PostTags.post, Post, opts)
Add Comment
Please, Sign In to add comment