Is there a quick method to clone categories and groups?


(Stephen Chung) #1

Due to the particular implementation of Discourse security, I am forced to open up lots of categories and lots of groups.

Each time I have to manually set all the settings for each category and each new group, and all those settings are basically the same. So much so that I keep a “cheat sheet” of sorts to help me remember which setting to set to what.

Is there a quick Rails command to clone a category and/or group? Of course the names will need to be different, but copy all other settings? Basic settings will be enough; things like group membership and/or security settings will be different anyway.