Created
November 16, 2010 10:55
-
-
Save alextkachman/701688 to your computer and use it in GitHub Desktop.
How 100% statically typed grails controller looks like
This file contains 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
def chatService | |
index: { | |
def id = request.session.id | |
[ | |
sessionId: id, | |
userName: request.session.userName ?: (request.session.userName = chatService.newUserName()) | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment