diff options
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r-- | lib/redmine/plugin.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index 11255e02d..f30277ad1 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -89,6 +89,13 @@ module Redmine #:nodoc: def self.clear @registered_plugins = {} end + + # Checks if a plugin is installed + # + # @param [String] id name of the plugin + def self.installed?(id) + registered_plugins[id.to_sym].present? + end def initialize(id) @id = id.to_sym |