play-api-rest-seed
play-api-rest-seed copied to clipboard
error when using play 2.6.0
/*
* ApiRequestHeader for requests that don't require authentication
*/
class ApiRequest[A](val request: Request[A]) extends WrappedRequest[A](request) with ApiRequestHeader[Request[A]] {
override def remoteAddress = request.remoteAddress
override def method = request.method
override def uri = request.uri
override def maybeBody: Option[String] = request.body match {
case body: JsValue => Some(Json.prettyPrint(body))
case body: String => if (body.length > 0) Some(body) else None
case body => Some(body.toString)
}
}
with play 2.6.0 RequestHeader has changed and remoteAddress
and uri
cannot be overridden here because of 'final' declaration
Adrian, do you have any suggestions how to fix this?
Sorry, but I haven't updated the repository to Play 2.6 yet. Meanwhile, you can check the migration guide.
Any plans to update to Play 2.6?
I did it to play 2.6 and for now we use it without problems, if you want I take the time to update it ...
I did it to play 2.6 and for now we use it without problems, if you want I take the time to update it ...
Hey, do you have an example of this somewhere? Would love to see!
Not, but in max one week i push the changes... in my fork code...and I notify you
He did not let me go up:
You can see the changes in my fork: https://github.com/rechemendia/play-api-rest-seed/commit/46cf06641aed5d4c631e8a1f96502a1606d6e439
See in builds.sbt: //TODO: sorry, I do not use it, see more -> https://github.com/sbt/sbt-scalariform //scalariformItSettings
regards