diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 01:12:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 01:12:11 +0000 |
commit | abf24a7d923961b56a92e8812cbc40234245b53b (patch) | |
tree | d7dbd65c8d8319fe305dd2d80685de58bd962e28 /lib/redmine/plugin.rb | |
parent | 913c8cd2e649564c07a81615b293a41ec7524136 (diff) | |
download | redmine-abf24a7d923961b56a92e8812cbc40234245b53b.tar.gz redmine-abf24a7d923961b56a92e8812cbc40234245b53b.zip |
Don't clear plugins in tests (#16258).
git-svn-id: http://svn.redmine.org/redmine/trunk@12988 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r-- | lib/redmine/plugin.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index 9f2862c53..f2800d211 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -113,6 +113,12 @@ module Redmine #:nodoc: @registered_plugins = {} end + # Removes a plugin from the registered plugins + # It doesn't unload the plugin + def self.unregister(id) + @registered_plugins.delete(id) + end + # Checks if a plugin is installed # # @param [String] id name of the plugin |