Make Rubocop happy
This commit is contained in:
parent
8114684ed8
commit
2ddc5c5bef
|
@ -23,7 +23,7 @@ module DiscourseAssign
|
||||||
.order('X.last_assigned DESC')
|
.order('X.last_assigned DESC')
|
||||||
.limit(6)
|
.limit(6)
|
||||||
|
|
||||||
render json: {
|
render json: {
|
||||||
assign_allowed_on_groups: Group.assign_allowed_groups.pluck(:name),
|
assign_allowed_on_groups: Group.assign_allowed_groups.pluck(:name),
|
||||||
suggestions: ActiveModel::ArraySerializer.new(users, scope: guardian, each_serializer: BasicUserSerializer)
|
suggestions: ActiveModel::ArraySerializer.new(users, scope: guardian, each_serializer: BasicUserSerializer)
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,6 @@ Discourse::Application.routes.append do
|
||||||
get "topics/messages-assigned/:username" => "list#messages_assigned", as: "topics_messages_assigned", constraints: { username: /[\w.\-]+?/ }
|
get "topics/messages-assigned/:username" => "list#messages_assigned", as: "topics_messages_assigned", constraints: { username: /[\w.\-]+?/ }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# TODO: Remove this once 2.4.0.beta3 is released.
|
# TODO: Remove this once 2.4.0.beta3 is released.
|
||||||
# HACK: Checking if the file exists, this means we can assume the migration happenned
|
# HACK: Checking if the file exists, this means we can assume the migration happenned
|
||||||
above_min_version = File.exist?(
|
above_min_version = File.exist?(
|
||||||
|
|
Loading…
Reference in New Issue