Skip to content

Commit

Permalink
update form-binder/Scalatra integration example
Browse files Browse the repository at this point in the history
  • Loading branch information
tminglei committed Oct 18, 2014
1 parent abbc375 commit 61584c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/scalatra/FormBindSupport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ trait MyFormBindSupport extends I18nSupport { this: ScalatraBase =>
}

def binder(implicit request: HttpServletRequest) =
expandJsonData("json") pipe_: FormBinder(bindMessages.apply).withErr(errsToJson4s)
expandJsonData("json") pipe_: FormBinder(bindMessages.get).withErr(errsToJson4s)

///
private def bindMessages(implicit request: HttpServletRequest): Messages = if (request == null) {
Expand Down

0 comments on commit 61584c0

Please sign in to comment.