Created
November 28, 2013 16:38
-
-
Save sergiomichels/7694704 to your computer and use it in GitHub Desktop.
Get GrailsDomainClass in an controller
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
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