From 2ddc5c5befedf877065b9f93770d0221c25e9eec Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Mon, 29 Jul 2019 21:33:25 -0400 Subject: [PATCH] Make Rubocop happy --- app/controllers/discourse_assign/assign_controller.rb | 2 +- plugin.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/discourse_assign/assign_controller.rb b/app/controllers/discourse_assign/assign_controller.rb index 9dadec5..2fa80ba 100644 --- a/app/controllers/discourse_assign/assign_controller.rb +++ b/app/controllers/discourse_assign/assign_controller.rb @@ -23,7 +23,7 @@ module DiscourseAssign .order('X.last_assigned DESC') .limit(6) - render json: { + render json: { assign_allowed_on_groups: Group.assign_allowed_groups.pluck(:name), suggestions: ActiveModel::ArraySerializer.new(users, scope: guardian, each_serializer: BasicUserSerializer) } diff --git a/plugin.rb b/plugin.rb index 0624616..735888b 100644 --- a/plugin.rb +++ b/plugin.rb @@ -23,7 +23,6 @@ Discourse::Application.routes.append do get "topics/messages-assigned/:username" => "list#messages_assigned", as: "topics_messages_assigned", constraints: { username: /[\w.\-]+?/ } end - # TODO: Remove this once 2.4.0.beta3 is released. # HACK: Checking if the file exists, this means we can assume the migration happenned above_min_version = File.exist?(