diff options
Diffstat (limited to 'core/src/main/scala/forge/util/PathRef.scala')
-rw-r--r-- | core/src/main/scala/forge/util/PathRef.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/scala/forge/util/PathRef.scala b/core/src/main/scala/forge/util/PathRef.scala index dbe1ebbd..333f225e 100644 --- a/core/src/main/scala/forge/util/PathRef.scala +++ b/core/src/main/scala/forge/util/PathRef.scala @@ -6,6 +6,8 @@ import java.nio.file.{FileVisitResult, FileVisitor} import java.nio.file.attribute.BasicFileAttributes import java.security.MessageDigest import java.nio.{file => jnio} + +import ammonite.ops.Path import play.api.libs.json.{Format, Json} @@ -53,5 +55,6 @@ case class PathRef(path: ammonite.ops.Path){ } object PathRef{ + private implicit val pathFormat: Format[Path] = JsonFormatters.pathFormat implicit def jsonFormatter: Format[PathRef] = Json.format } |