Browse files

Parity

  • Loading branch information...
1 parent 62d4e68 commit 2f15d8f33e891ac10a0ca19526c5501a1cf92b06 @dpp dpp committed with indrajitr Mar 16, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 web/webkit/src/main/scala/net/liftweb/sitemap/Menu.scala
View
7 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 2f15d8f

Please sign in to comment.