Guest User

Untitled

a guest
Oct 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. val opts = User.currentUser match {
  2. case Full(u: User) => OrderBy(Post.publishDate, Ascending))
  3. case _ => By(Post.published, true), By_<(Post.publishDate, new Date), OrderBy(Post.publishDate, Ascending)
  4. }
  5. object posts extends MappedManyToMany(PostTags, PostTags.tag, PostTags.post, Post, opts)
Add Comment
Please, Sign In to add comment