Project

General

Profile

Enumeration API change - Moved to Single Table Inheritance

Added by Eric Davis almost 15 years ago

I've just commited a significant change to Enumerations, giving each Enumeration type it's own class. I've been running this change in production for almost two months now and haven't had any major bugs. If you discover one, please open a new issue and assign it to me. Now for the fun news for developers...

Now you can use specific classes to work on Enumerations: TimeEntryActivity, DocumentCategory, and IssuePriority. A nice side effect is that plugins should now be able to create new Enumerations by subclassing Enumeration. This should automatically get your custom Enumeration to appear in Redmine's Administration panel, for free. If you do end up creating a new Enumeration class in your plugin, let me know (I'm curious).

Eric