Skip to content

Commit

Permalink
Resolved: org.grails.web.converters.configuration.ConvertersConfigura…
Browse files Browse the repository at this point in the history
…tionInitializer does not respect grails.converters.include.class settings for the "deep" configuration #2
  • Loading branch information
AFSDevGuy committed Nov 21, 2017
1 parent a24b0a2 commit 1c5a880
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private Config getGrailsConfig() {

private void initDeepJSONConfiguration() {
DefaultConverterConfiguration<JSON> deepConfig = new DefaultConverterConfiguration<JSON>(ConvertersConfigurationHolder.getConverterConfiguration(JSON.class), getProxyHandler());
deepConfig.registerObjectMarshaller(new org.grails.web.converters.marshaller.json.DeepDomainClassMarshaller(includeDomainVersionProperty(getGrailsConfig(), "json"), getProxyHandler(), grailsApplication));
deepConfig.registerObjectMarshaller(new org.grails.web.converters.marshaller.json.DeepDomainClassMarshaller(includeDomainVersionProperty(getGrailsConfig(),"json"), includeDomainClassProperty(getGrailsConfig(), "json"), getProxyHandler(), grailsApplication));
ConvertersConfigurationHolder.setNamedConverterConfiguration(JSON.class, "deep", deepConfig);
}

Expand Down

0 comments on commit 1c5a880

Please sign in to comment.