Discussions

Ask a Question
Back to All

Scala documentation is out of date

Hi Steve,

the documentation is obviously out of date:
https://deadbolt-scala.readme.io/docs/template-constraints

as 'restrict' is no longer an object I can't figure out how to make TWIRL magic work, simple changing
@import be.objectify.deadbolt.scala.views.html.restrict
to
@import be.objectify.deadbolt.scala.views.html.di.restrict

evidently does not work as an instance of 'restrict' object must be dependency injected somehow.

Will be nice if the documentation is updated with appropriate examples.

Thanks