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

refactor: Put rubocop disable pragma on the offending line

Christophe Bliard33ac14c1f789
diff --git a/app/components/work_packages/progress/status_based/modal_body_component.rb b/app/components/work_packages/progress/status_based/modal_body_component.rb
index 53d7b38eb32..83174e97923 100644
--- a/app/components/work_packages/progress/status_based/modal_body_component.rb
+++ b/app/components/work_packages/progress/status_based/modal_body_component.rb
@@ -31,15 +31,12 @@
module WorkPackages
module Progress
module StatusBased
- # rubocop:disable OpenProject/AddPreviewForViewComponent
- class ModalBodyComponent < BaseModalComponent
+ class ModalBodyComponent < BaseModalComponent # rubocop:disable OpenProject/AddPreviewForViewComponent
def initialize(work_package, focused_field: nil)
super
@mode = :status_based
end
-
- # rubocop:enable OpenProject/AddPreviewForViewComponent
end
end
end