Rename display_plugins -> visible_plugins.

This commit is contained in:
Guo Xiang Tan 2018-05-09 07:52:21 +08:00
parent 630a8ba3d8
commit bbc85258c9
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -168,7 +168,7 @@ module Discourse
@hidden_plugins ||= []
end
def self.display_plugins
def self.visible_plugins
self.plugins - self.hidden_plugins
end