From: Tom Hughes Date: Tue, 20 Dec 2022 18:57:12 +0000 (+0000) Subject: Fix new rubocop warnings X-Git-Tag: live~1370 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/fd283efa51c0fee16b710efd97bf72da5a461288?hp=-c Fix new rubocop warnings --- fd283efa51c0fee16b710efd97bf72da5a461288 diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 594038939..10a6dc09b 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -12,8 +12,8 @@ class IssuesController < ApplicationController @title = t ".title" @issue_types = [] - @issue_types.concat %w[Note] if current_user.moderator? - @issue_types.concat %w[DiaryEntry DiaryComment User] if current_user.administrator? + @issue_types.push("Note") if current_user.moderator? + @issue_types.push("DiaryEntry", "DiaryComment", "User") if current_user.administrator? @users = User.joins(:roles).where(:user_roles => { :role => current_user.roles.map(&:role) }).distinct @issues = Issue.visible_to(current_user)