Created
January 6, 2013 02:56
-
-
Save wbarksdale/4464913 to your computer and use it in GitHub Desktop.
Multiple implicit parameters use case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object MainRouter { | |
implicit val session: Option[Session] | |
implicit val flash: ... | |
runRoutes { | |
UserController.routes | |
OtherController.routes | |
} | |
} | |
object UserController { | |
lazy val routes = { | |
(implicit flash: Flash, maybeSession: Option[Session]) => { | |
... routes | |
} | |
} | |
} | |
object OtherController { | |
lazy val routes = { | |
(implicit flash: Flash) => { | |
... routes | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment