]> git.openstreetmap.org Git - rails.git/commitdiff
Fix new rubocop warnings
authorTom Hughes <tom@compton.nu>
Tue, 20 Dec 2022 18:57:12 +0000 (18:57 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 20 Dec 2022 18:57:12 +0000 (18:57 +0000)
app/controllers/issues_controller.rb

index 5940389397ca76e8b7b6d9a524a76d9df41185c0..10a6dc09ba603203fb43293a7b32a7dd0c8fd09f 100644 (file)
@@ -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)