Skip to content

Commit

Permalink
Make AsObjectId.asObjectId public
Browse files Browse the repository at this point in the history
  • Loading branch information
eltimn committed May 21, 2014
1 parent fde6587 commit 85dee73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.bson.types.ObjectId
object AsObjectId {
def unapply(in: String): Option[ObjectId] = asObjectId(in)

private def asObjectId(in: String): Option[ObjectId] =
def asObjectId(in: String): Option[ObjectId] =
if (ObjectId.isValid(in)) Some(new ObjectId(in))
else None
}

0 comments on commit 85dee73

Please sign in to comment.