mminella/grails-feature-toggle — comment on commit 4640130b3bc7fdbac9018746c55cb2596b498ad2
File: grails-app/conf/BootStrap.groovy line 39
By ryannorris:

Okay, one really great potential improvement here is to store this in a spring bean instead of the servlet context. If we do that, then developers can inject that bean into their classes to make deterministic decisions on features controlled at the controller/action level. Not something that would prevent me from moving forward as everything else looks pretty good, but just keeping a map in the servlet context is probably a "done before perfect" scenario, which is fine.