I was just testing a theory about the origin of an issue in the elections and qa plugins, and needed to test some logic in isolation. Normally I would create a new plugin by hand to do this, but this time it was much easier using the plugin generator, just a single command. Useful already Thanks.
I was getting a NameError though on initial load after generating a plugin (I had removed tmp
). The plugin.rb includes an auto-generated enabled_site_setting
out of the box, but the setting isn’t defined in config/settings.yml
. If you add the setting, the error goes away. We’ll need to either remove the auto-generated enabled setting or add a config/settings.yml with the auto-generated enabled setting included by default.