From bbc85258c970a587603002b44476c9e30f95f188 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 9 May 2018 07:52:21 +0800 Subject: [PATCH] Rename `display_plugins` -> `visible_plugins`. --- app/controllers/admin/plugins_controller.rb | 2 +- lib/discourse.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/plugins_controller.rb b/app/controllers/admin/plugins_controller.rb index 3221d104bba..9067fa9e8c9 100644 --- a/app/controllers/admin/plugins_controller.rb +++ b/app/controllers/admin/plugins_controller.rb @@ -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 diff --git a/lib/discourse.rb b/lib/discourse.rb index 52a166e63fc..79e59845982 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -168,7 +168,7 @@ module Discourse @hidden_plugins ||= [] end - def self.display_plugins + def self.visible_plugins self.plugins - self.hidden_plugins end