Grails
  1. Grails
  2. GRAILS-6363

Make the Grails application available in resources.groovy files

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.5
    • Component/s: None
    • Labels:
      None

      Description

      It's quite common to want to configure beans differently depending on the application config. At the moment this means using the hideous ConfigurationHolder singleton.

      The following should be possible...

      beans {
         if (!application.config.nobeans) {
             // plant the magic beans
         }
      }
      

        Activity

        Show
        Luke Daley added a comment - Fixed: http://github.com/grails/grails-core/commit/6ff5b86e40ba11eebd80462d6a60e84b73a42627

          People

          • Assignee:
            Luke Daley
            Reporter:
            Luke Daley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development