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

Base on ApplicationComponent

Oliver Günther7e408177dbba
diff --git a/app/components/attribute_groups/attribute_group_component.rb b/app/components/attribute_groups/attribute_group_component.rb
index fce96688dbc..00a41223718 100644
--- a/app/components/attribute_groups/attribute_group_component.rb
+++ b/app/components/attribute_groups/attribute_group_component.rb
@@ -29,7 +29,7 @@
#++
module AttributeGroups
- class AttributeGroupComponent < ::RailsComponent
+ class AttributeGroupComponent < ::ApplicationComponent
renders_one :header, AttributeGroups::AttributeGroupHeaderComponent
renders_many :attributes, AttributeGroups::AttributeKeyValueComponent
end
diff --git a/app/components/attribute_groups/attribute_group_header_component.rb b/app/components/attribute_groups/attribute_group_header_component.rb
index b495bae5c01..8db8509b221 100644
--- a/app/components/attribute_groups/attribute_group_header_component.rb
+++ b/app/components/attribute_groups/attribute_group_header_component.rb
@@ -29,7 +29,7 @@
#++
module AttributeGroups
- class AttributeGroupHeaderComponent < ::RailsComponent
+ class AttributeGroupHeaderComponent < ::ApplicationComponent
options :title
end
end
diff --git a/app/components/attribute_groups/attribute_key_value_component.rb b/app/components/attribute_groups/attribute_key_value_component.rb
index d4e681f6207..092729739bc 100644
--- a/app/components/attribute_groups/attribute_key_value_component.rb
+++ b/app/components/attribute_groups/attribute_key_value_component.rb
@@ -29,7 +29,7 @@
#++
module AttributeGroups
- class AttributeKeyValueComponent < ::RailsComponent
+ class AttributeKeyValueComponent < ::ApplicationComponent
options :key, :value
end
end