Skip to content

Commit

Permalink
merge Ticket playframework#476
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha authored and ph2734 committed Jul 9, 2012
1 parent d0a785c commit 2a9de2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/src/play/src/main/scala/play/api/Routes.scala
Expand Up @@ -37,7 +37,9 @@ package play.api {
|})(%s)
""".stripMargin.format(
name,
ajaxMethod.map("ajax:function(c){c.url=r.url;c.type=r.method;" + _ + "(c)},").getOrElse(""),
ajaxMethod.map("ajax:function(c){c.url=r.url;c.type=r.method;return " + _ + "(c)},").getOrElse(""),
host,
host,
routes.map { route =>
"_nS('%s'); _root.%s = %s".format(
route.name.split('.').dropRight(1).mkString("."),
Expand Down

0 comments on commit 2a9de2e

Please sign in to comment.