Created
November 6, 2009 02:18
-
-
Save nobeans/227622 to your computer and use it in GitHub Desktop.
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
diff --git a/grails/src/java/org/codehaus/groovy/grails/scaffolding/DefaultGrailsTemplateGenerator.groovy b/grails/src/java/org/codehaus/groovy/grails/scaffolding/DefaultGrailsTemplateGenerator.groovy | |
index 02e0335..518d059 100644 | |
--- a/grails/src/java/org/codehaus/groovy/grails/scaffolding/DefaultGrailsTemplateGenerator.groovy | |
+++ b/grails/src/java/org/codehaus/groovy/grails/scaffolding/DefaultGrailsTemplateGenerator.groovy | |
@@ -57,11 +57,10 @@ class DefaultGrailsTemplateGenerator implements GrailsTemplateGenerator, Resourc | |
*/ | |
DefaultGrailsTemplateGenerator(ClassLoader classLoader) { | |
engine = new SimpleTemplateEngine(classLoader) | |
- def suffix = ConfigurationHolder.config?.grails?.templates?.domainSuffix | |
- if (suffix == [:]) { // default for compatibility | |
- suffix = 'Instance' | |
+ def suffix = ConfigurationHolder.config?.grails?.scaffolding?.templates?.domainSuffix | |
+ if (suffix != [:]) { | |
+ domainSuffix = suffix | |
} | |
- domainSuffix = suffix ?: 'Instance' | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment