Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor changes

Deprecated implicit conversion from MappedField[T] to T. Fixes #1247
Make SHtml.ApplicableElem public to allow user defined SHtml extensions in the same style as existing methods. Fixes #1273
  • Loading branch information...
commit 71cdc780c0e38bf655292cd79dce2b1aa9545f58 1 parent 8a26cb2
@jeppenejsum jeppenejsum authored
View
1  persistence/mapper/src/main/scala/net/liftweb/mapper/MappedField.scala
@@ -695,6 +695,7 @@ trait MappedField[FieldType <: Any,OwnerType <: Mapper[OwnerType]] extends Typed
}
object MappedField {
+ @deprecated("Automatic conversion to the field's type is not safe and will be removed. Please use field.get instead")
implicit def mapToType[T, A<:Mapper[A]](in : MappedField[T, A]): T = in.is
}
View
4 web/webkit/src/main/scala/net/liftweb/http/SHtml.scala
@@ -109,11 +109,11 @@ trait SHtml {
}
}
- private class ApplicableElem(in: Elem) {
+ class ApplicableElem(in: Elem) {
def %(attr: ElemAttr): Elem = attr.apply(in)
}
- private implicit def elemToApplicable(e: Elem): ApplicableElem =
+ implicit def elemToApplicable(e: Elem): ApplicableElem =
new ApplicableElem(e)
/**
Please sign in to comment.
Something went wrong with that request. Please try again.