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

Make ShowComponent#initialize kwargs required

Alexander Brandon Coles42b855d6f235
diff --git a/app/components/projects/settings/general/show_component.rb b/app/components/projects/settings/general/show_component.rb
index fe3bc071186..3567da5839f 100644
--- a/app/components/projects/settings/general/show_component.rb
+++ b/app/components/projects/settings/general/show_component.rb
@@ -36,7 +36,14 @@ module Projects
include OpPrimer::ComponentHelpers
include OpTurbo::Streamable
- options :project, :current_user
+ attr_reader :project, :current_user
+
+ def initialize(project:, current_user:)
+ super()
+
+ @project = project
+ @current_user = current_user
+ end
end
end
end