Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New IterableConst implicit for Option[T] where T<%StringPromotable

  • Loading branch information...
commit 5f55639c87c2c319c245722a9c6c5bd03e79405e 1 parent d0a92f5
@nafg nafg authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  core/util/src/main/scala/net/liftweb/util/BindHelpers.scala
View
2  core/util/src/main/scala/net/liftweb/util/BindHelpers.scala
@@ -1663,6 +1663,8 @@ object IterableConst {
implicit def optionBindablePromotable(it: Option[Bindable]): IterableConst =
SeqBindableIterableConst(it.toList)
+
+ implicit def optionStringPromotable[T](o: Option[T])(implicit view:T=>StringPromotable) = optionString(o.map(view(_).toString))
}
sealed trait IterableFunc extends Function1[NodeSeq, Seq[NodeSeq]] {
Please sign in to comment.
Something went wrong with that request. Please try again.