ryannorris/grails-feature-toggle — pull request #4 by mminella (2012-02-24 00:09:26+00:00)
Title: Fixes for use as a plugin

While the previous commit worked well as a sample app, when included as a plugin into another application, things broke. The following updates are included in this push:

* Fixed name of BootStrap.groovy so it is included as part of the plugin (BootStrap.groovy is not included in the zip file...you need to prepend it with something).
* Updated version number for the plugin to a SNAPSHOT version (releasing a project multiple times with the same version number is bad practice)
* Added null check in the filter
* Moved the annotation out of the controller package (It never belonged there)

Along with this push, I had a question about one element I discovered in the FeatureToggleController. In the JSON closure for the list, it was throwing a NPE on line 17. I'm wondering...shouldn't the features[featureName] be toggles[featureName]? Either way, the JSON closure was throwing an error but the HTML closure was not.