Project

General

Profile

Actions

Defect #6000

closed

Safe Attributes prevents plugin extension of Issue model...

Added by Nick Peelman over 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Issues
Target version:
Start date:
2010-07-30
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I don’t know if this problem is limited purely to the issue model, or if it exists elsewhere in other models as well…

The addition of the safe_attributes method, well, really the entire paradigm of setting attributes this way, severely hamstrings other developers’ abilities to write plugins that extend the issue model. accepts_nested_attributes_for goes out the window, because now all the submitted for elements for those get ignored and thrown into the bit bucket.

To some extent, I can understand why this was done, but I don’t understand doing it without providing a way to easily EXTEND the safe_attributes array, without having to set some constant to replace it completely. Hopefully this can be remedied soon, as I have plugins dependent upon extending the Issue model :\

Actions

Also available in: Atom PDF