Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@alextkachman
Created November 16, 2010 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alextkachman/701688 to your computer and use it in GitHub Desktop.
Save alextkachman/701688 to your computer and use it in GitHub Desktop.
How 100% statically typed grails controller looks like
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