mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
194c84b217
Some plugins have discourse- prefixed on their name and some don't, so sorting in the list was inconsistent. --------- Co-authored-by: Ted Johansson <ted@discourse.org>
12 lines
283 B
Ruby
12 lines
283 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::PluginsController < Admin::StaffController
|
|
def index
|
|
render_serialized(
|
|
Discourse.visible_plugins.sort_by { |p| p.name.downcase.delete_prefix("discourse-") },
|
|
AdminPluginSerializer,
|
|
root: "plugins",
|
|
)
|
|
end
|
|
end
|