##// END OF EJS Templates
Add Redmine::Plugin.installed?(:name) method to check if a plugin is installed...
Eric Davis -
r4179:c399e7632478
parent child
Show More
@@ -89,6 +89,13 module Redmine #:nodoc:
89 89 def self.clear
90 90 @registered_plugins = {}
91 91 end
92
93 # Checks if a plugin is installed
94 #
95 # @param [String] id name of the plugin
96 def self.installed?(id)
97 registered_plugins[id.to_sym].present?
98 end
92 99
93 100 def initialize(id)
94 101 @id = id.to_sym
General Comments 0
You need to be logged in to leave comments. Login now