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

Fix Rubocop issues

Klaus Zanders643572119bc1
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index 7656356430e..8dacfa355be 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -57,13 +57,13 @@ Redmine::MenuManager.map :top_menu do |menu|
if OpenProject::FeatureDecisions.more_global_index_pages_active?
menu.push :meetings,
- { controller: '/meetings', project_id: nil, action: 'index' },
- context: :modules,
- caption: I18n.t('label_meetings_plural'),
- if: Proc.new {
- (User.current.logged? || !Setting.login_required?) &&
- User.current.allowed_to_globally?(:view_meetings)
- }
+ { controller: '/meetings', project_id: nil, action: 'index' },
+ context: :modules,
+ caption: I18n.t('label_meetings_plural'),
+ if: Proc.new {
+ (User.current.logged? || !Setting.login_required?) &&
+ User.current.allowed_to_globally?(:view_meetings)
+ }
end
menu.push :help,
diff --git a/modules/meeting/app/cells/meetings/row_cell.rb b/modules/meeting/app/cells/meetings/row_cell.rb
index db2a1504e8b..bd9556163f2 100644
--- a/modules/meeting/app/cells/meetings/row_cell.rb
+++ b/modules/meeting/app/cells/meetings/row_cell.rb
@@ -23,4 +23,3 @@ module Meetings
end
end
end
-
diff --git a/modules/meeting/app/cells/meetings/table_cell.rb b/modules/meeting/app/cells/meetings/table_cell.rb
index 751d6230e90..a33f5d9e30d 100644
--- a/modules/meeting/app/cells/meetings/table_cell.rb
+++ b/modules/meeting/app/cells/meetings/table_cell.rb
@@ -18,7 +18,7 @@ module Meetings
current_project.blank? ? [:project, { caption: Meeting.human_attribute_name(:project) }] : nil,
[:start_time, { caption: Meeting.human_attribute_name(:start_time) }],
[:duration, { caption: Meeting.human_attribute_name(:duration) }],
- [:location, { caption: Meeting.human_attribute_name(:location) }],
+ [:location, { caption: Meeting.human_attribute_name(:location) }]
].compact
end
@@ -27,4 +27,3 @@ module Meetings
end
end
end
-
diff --git a/modules/meeting/app/controllers/meetings_controller.rb b/modules/meeting/app/controllers/meetings_controller.rb
index 3154fdbcef5..53116c8be6b 100644
--- a/modules/meeting/app/controllers/meetings_controller.rb
+++ b/modules/meeting/app/controllers/meetings_controller.rb
@@ -35,7 +35,6 @@ class MeetingsController < ApplicationController
before_action :authorize, except: [:index]
before_action :authorize_global, only: :index
-
helper :watchers
helper :meeting_contents
include WatchersHelper