mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
Rename display_plugins
-> visible_plugins
.
This commit is contained in:
parent
630a8ba3d8
commit
bbc85258c9
|
@ -1,7 +1,7 @@
|
|||
class Admin::PluginsController < Admin::AdminController
|
||||
|
||||
def index
|
||||
render_serialized(Discourse.display_plugins, AdminPluginSerializer, root: 'plugins')
|
||||
render_serialized(Discourse.visible_plugins, AdminPluginSerializer, root: 'plugins')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -168,7 +168,7 @@ module Discourse
|
|||
@hidden_plugins ||= []
|
||||
end
|
||||
|
||||
def self.display_plugins
|
||||
def self.visible_plugins
|
||||
self.plugins - self.hidden_plugins
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user