Actions
Feature #39948
closedAdd Redmine::Plugin proxy method for Redmine::Acts::Attachable::ObjectTypeConstraint.register_object_type
Feature #39948:
Add Redmine::Plugin proxy method for Redmine::Acts::Attachable::ObjectTypeConstraint.register_object_type
Resolution:
Fixed
Description
Following #39862 I wonder: wouldn't it be neater to add a dedicated proxy method to Redmine::Plugin (something like Redmine::Plugin#attachment_object_type) for Redmine::Acts::Attachable::ObjectTypeConstraint.register_object_type?
This way plugin authors don't have to reach into Redmine core internals when implementing AAA for their own plugin models themselves. How do other people think about this?
Files
Actions