I have this code. The method returns a tuple (User, Acl, Tree). Instead of accessing data with _._1, _._2, etc. I use a match. Is there an easier (better) way than what I'm doing? thank
User.findUserJoinAclTree(3).map {
_ match {
case(user, acl, tree) =>
Logger.info(user.email)
Logger.info(acl.id)
Logger.info(tree.name)
}
}
source
share