Make Rubocop happy

This commit is contained in:
Penar Musaraj 2019-07-29 21:33:25 -04:00
parent 8114684ed8
commit 2ddc5c5bef
2 changed files with 1 additions and 2 deletions

View File

@ -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)
}

View File

@ -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?(