We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c2d192 commit 3c29edeCopy full SHA for 3c29ede
grails-scaffolding/src/main/groovy/org/grails/compiler/scaffolding/ScaffoldingControllerInjector.groovy
@@ -71,7 +71,7 @@ class ScaffoldingControllerInjector implements GrailsArtefactClassInjector {
71
72
def expression = propertyNode?.getInitialExpression()
73
if (expression instanceof ClassExpression || annotationNode) {
74
- if (expression instanceof ClassExpression && !annotationNode) {
+ if (!annotationNode) {
75
ClassNode domainClassNode = ((ClassExpression) expression).getType()
76
String domainClassName = domainClassNode.getNameWithoutPackage()
77
String controllerClassName = classNode.getNameWithoutPackage()
0 commit comments