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

obey rubocop

as-op5de92c9b7f75
diff --git a/app/components/work_packages/exports/generate/modal_dialog_component.rb b/app/components/work_packages/exports/generate/modal_dialog_component.rb
index f6c44ec5ecd..0a0f1a79a93 100644
--- a/app/components/work_packages/exports/generate/modal_dialog_component.rb
+++ b/app/components/work_packages/exports/generate/modal_dialog_component.rb
@@ -32,9 +32,9 @@ require "text/hyphen"
module WorkPackages
module Exports
module Generate
- class ModalDialogComponent <ApplicationComponent
- MODAL_ID="op-work-package-generate-pdf-dialog"
- GENERATE_PDF_FORM_ID="op-work-packages-generate-pdf-dialog-form"
+ class ModalDialogComponent < ApplicationComponent
+ MODAL_ID = "op-work-package-generate-pdf-dialog"
+ GENERATE_PDF_FORM_ID = "op-work-packages-generate-pdf-dialog-form"
include OpTurbo::Streamable
include OpPrimer::ComponentHelpers
attr_reader :work_package, :params
diff --git a/app/components/work_packages/types/export_configuration_component.rb b/app/components/work_packages/types/export_configuration_component.rb
index 7d015df32fd..057d85a6cc3 100644
--- a/app/components/work_packages/types/export_configuration_component.rb
+++ b/app/components/work_packages/types/export_configuration_component.rb
@@ -30,7 +30,7 @@
module WorkPackages
module Types
- class ExportConfigurationComponent <ApplicationComponent
+ class ExportConfigurationComponent < ApplicationComponent
include OpPrimer::ComponentHelpers
include OpTurbo::Streamable
def pdf_export_templates
diff --git a/app/components/work_packages/types/export_template_row_component.rb b/app/components/work_packages/types/export_template_row_component.rb
index 9fd3dc0b90d..b99cab5d3ca 100644
--- a/app/components/work_packages/types/export_template_row_component.rb
+++ b/app/components/work_packages/types/export_template_row_component.rb
@@ -30,7 +30,7 @@
module WorkPackages
module Types
- class ExportTemplateRowComponent <ApplicationComponent
+ class ExportTemplateRowComponent < ApplicationComponent
include ApplicationHelper
include OpPrimer::ComponentHelpers
include OpTurbo::Streamable
diff --git a/app/controllers/work_packages/types/pdf_export_template_controller.rb b/app/controllers/work_packages/types/pdf_export_template_controller.rb
index c47882f7f24..63d73a1a586 100644
--- a/app/controllers/work_packages/types/pdf_export_template_controller.rb
+++ b/app/controllers/work_packages/types/pdf_export_template_controller.rb
@@ -30,7 +30,7 @@
module WorkPackages
module Types
- class PdfExportTemplateController <ApplicationController
+ class PdfExportTemplateController < ApplicationController
include OpTurbo::ComponentStream
before_action :require_admin
before_action :find_type, only: %i[toggle drop enable_all disable_all]
diff --git a/app/models/type.rb b/app/models/type.rb
index 646afefacf1..53cab3d2a9c 100644
--- a/app/models/type.rb
+++ b/app/models/type.rb
@@ -28,7 +28,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-class Type <ApplicationRecord
+class Type < ApplicationRecord
# Work Package attributes for this type
# and constraints to specific attributes (by plugins).
include ::Type::Attributes
diff --git a/db/migrate/20250210163523_add_export_templates_to_type.rb b/db/migrate/20250210163523_add_export_templates_to_type.rb
index 73cb7f9a1f8..150137ab1a9 100644
--- a/db/migrate/20250210163523_add_export_templates_to_type.rb
+++ b/db/migrate/20250210163523_add_export_templates_to_type.rb
@@ -28,7 +28,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-class AddExportTemplatesToType <ActiveRecord::Migration[7.1]
+class AddExportTemplatesToType < ActiveRecord::Migration[7.1]
def change
add_column :types, :pdf_export_templates, :jsonb, default: {}
end