Skip to content

Instantly share code, notes, and snippets.

@atomsfat
Created January 28, 2014 18:45
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 atomsfat/8673594 to your computer and use it in GitHub Desktop.
Save atomsfat/8673594 to your computer and use it in GitHub Desktop.
BootStrap definition to automatically register custom marshaller
class BootStrap {
def grailsApplication
grailsApplication.getArtefacts("Domain").each{dc->
//here we register custom marshallers declared in domain classes
if(dc.hasProperty("marshaller")){
dc.clazz.marshaller()
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment