Skip to content

Instantly share code, notes, and snippets.

@sergiomichels
Created November 28, 2013 16:38
Show Gist options
  • Save sergiomichels/7694704 to your computer and use it in GitHub Desktop.
Save sergiomichels/7694704 to your computer and use it in GitHub Desktop.
Get GrailsDomainClass in an controller
class MyController {
def grailsApplication
def index() {
def domainClass = grailsApplication.getDomainClass("package.DomainClassName")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment