Closed rlovtangen closed 4 years ago
The return type of GroovyPageTemplate.make(Map binding)
has been changed in Grails 3.0.8 from Writable
to GroovyPageWritable
(https://github.com/grails/grails-core/commit/932177e21a0fb21faec431c6cde43209f8a85b53)
This in conjunction with the CompileStatic changes in 2.0.0.RC6 might cause this issue? Note that 2.0.0.RC4 works fine, so it's not the changes in grails-core alone.
I believe this works in the latest versions. Please feel free to make a new issue if not.
Using
body
withmodel
does not work in Grails 3.0.7 and earlier with mail plugin 2.0.0.RC6 as opposed to 2.0.0.RC4.Example:
Exception:
This is caused by
template.make(model).writeTo(out)
inMailMessageContentRender.render
.Without
body
as parameter, the other part of the if-statement,template.make().writeTo(out)
, is invoked, which works fine also in Grails 3.0.7.