don't cache the scope in Project#all_available_custom_fields

This commit is contained in:
Ivan Kuchin
2026-02-11 15:17:26 +01:00
parent 776f5aa606
commit c8bd3dffed
+1 -1
View File
@@ -60,7 +60,7 @@ module Projects::CustomFields
# modification happens via the api, then set the available_custom_fields accordingly. This allows
# the extension to be completely removed from the acts_as_customizable plugin.
def all_available_custom_fields
@all_available_custom_fields ||= ProjectCustomField
ProjectCustomField
.includes(:project_custom_field_section)
.order("custom_field_sections.position", :position_in_custom_field_section)
end