use a more DRY way to build project view

This commit is contained in:
Stefan Tollkühn
2025-07-23 13:11:11 +02:00
parent c2037d0482
commit 7603ccd22d
3 changed files with 11 additions and 5 deletions

View File

@@ -2,4 +2,8 @@ module ProjectsHelper
def project_form_fields
[:name, :email, :short_name, :offer_date, :order_date]
end
def project_view_fields
[:name, :email, :short_name, :offer_date, :order_date]
end
end