Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use model.customizable? because that is the right way to decide whether a model implements custom fields.

Dombi Attilaa8aedc8703a2
diff --git a/app/services/journals/create_service/customizable.rb b/app/services/journals/create_service/customizable.rb
index ac76db2342f..e154afe62bf 100644
--- a/app/services/journals/create_service/customizable.rb
+++ b/app/services/journals/create_service/customizable.rb
@@ -31,7 +31,7 @@
class Journals::CreateService
class Customizable < Association
def associated?
- journable.respond_to?(:customizable?)
+ journable.customizable?
end
def cleanup_predecessor(predecessor)