I am using grails 2.0.4 and would like to refer to configuration information in my resources.groovy file. In earlier versions of grails, I used ConfigurationHolder to get at this information, but this is now deprecated.
From reading other posts, I am confused about how to proceed. One suggests that the property application will get injected with the GrailsApplication bean; another suggests the use of grailsApplication, but neither seems to work in my resources.groovy file.
Must I load the GrailsApplication bean "manually" as stated here? Or is there a more elegant solution? An example of a working resource file that accesses configuration information would be great.