Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe73187

Browse files
committed
Pass boolean literal args as named arg in generated routes files
Fixes scala/scala#10612
1 parent aacc32b commit fe73187

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev-mode/play-routes-compiler/src/main/scala/play/routes/compiler/RoutesModels.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ trait PathPart
126126
* @param encode Whether this part should be encoded or not.
127127
*/
128128
case class DynamicPart(name: String, constraint: String, encode: Boolean) extends PathPart with Positional {
129-
override def toString = """DynamicPart("""" + name + "\", \"\"\"" + constraint + "\"\"\"," + encode + ")" // "
129+
override def toString =
130+
"""DynamicPart("""" + name + "\", \"\"\"" + constraint + "\"\"\", encodeable=" + encode + ")" // "
130131
}
131132

132133
/**

0 commit comments

Comments
 (0)