@@ -73,54 +73,6 @@ def default_variant
7373 variants . detect ( &:is_default_variant? )
7474 end
7575
76- # Form custom fields live on the base variant. Prefer `default_variant.custom_fields`.
77- # Kept temporarily so the many call sites that still write `type.custom_fields << cf` keep
78- # working while they are migrated.
79- def custom_fields
80- OpenProject ::Deprecation . replaced ( "Type#custom_fields" , "Type#default_variant.custom_fields" , caller_locations )
81-
82- default_variant . custom_fields
83- end
84-
85- def custom_fields = ( values )
86- OpenProject ::Deprecation . replaced ( "Type#custom_fields=" , "Type#default_variant.custom_fields=" , caller_locations )
87-
88- default_variant . custom_fields = values
89- end
90-
91- def custom_field_ids
92- OpenProject ::Deprecation . replaced ( "Type#custom_field_ids" , "Type#default_variant.custom_field_ids" , caller_locations )
93-
94- default_variant . custom_field_ids
95- end
96-
97- def custom_field_ids = ( values )
98- OpenProject ::Deprecation . replaced ( "Type#custom_field_ids=" , "Type#default_variant.custom_field_ids=" , caller_locations )
99-
100- default_variant . custom_field_ids = values
101- end
102-
103- # Form configuration lives on the base variant. Prefer `default_variant.attribute_groups`.
104- def attribute_groups
105- OpenProject ::Deprecation . replaced ( "Type#attribute_groups" , "Type#default_variant.attribute_groups" , caller_locations )
106-
107- default_variant . attribute_groups
108- end
109-
110- def attribute_groups = ( values )
111- OpenProject ::Deprecation . replaced ( "Type#attribute_groups=" , "Type#default_variant.attribute_groups=" , caller_locations )
112-
113- default_variant . attribute_groups = values
114- end
115-
116- def reset_attribute_groups
117- OpenProject ::Deprecation . replaced ( "Type#reset_attribute_groups" ,
118- "Type#default_variant.reset_attribute_groups" ,
119- caller_locations )
120-
121- default_variant . reset_attribute_groups
122- end
123-
12476 def <=>( other )
12577 name <=> other . name
12678 end
0 commit comments