Permalink
Browse files

Parity

  • Loading branch information...
1 parent 1a0976d commit 1f9557ee136346fbe512f741d701c440d67e1954 @dpp dpp committed Mar 16, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 web/webkit/src/main/scala/net/liftweb/sitemap/Menu.scala
@@ -323,6 +323,13 @@ object Menu extends MenuSingleton {
* Convert a Menuable into a Menu when you need a Menu.
*/
implicit def toMenu(able: ParamsMenuable[_]): Menu = able.toMenu
+
+ /**
+ * Convert a Menuable into a Loc[T]
+ */
+ implicit def toLoc[T](able: ParamsMenuable[T]): Loc[T] =
+ able.toMenu.loc.asInstanceOf[Loc[T]]
+
}

0 comments on commit 1f9557e

Please sign in to comment.