Permalink
Browse files

bug fix, and changed from using <% out << ... %> to ${ ... }

  • Loading branch information...
1 parent d3af267 commit 301050e7ff52f1ed534ae079573a5b0268615928 @burtbeckwith burtbeckwith committed Jan 31, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/templates/Person.groovy.template
@@ -22,8 +22,8 @@ class ${userClassName} {
password column: '`password`'
}
- Set<<% out << (groupClassName ?: roleClassName) %>> getAuthorities() {
- ${userClassName}<% out << groupClassName ?: roleClassName %>.findAllBy${userClassName}(this).collect { it.<% out << (groupClassProperty ?: roleClassProperty) %> }
+ Set<${groupClassName ?: roleClassName}> getAuthorities() {
+ ${userClassName}${groupClassName ?: roleClassName}.findAllBy${userClassName}(this).collect { it.${groupClassProperty ?: roleClassProperty} }
}
def beforeInsert() {

0 comments on commit 301050e

Please sign in to comment.