Mercurial > hg > soundsoftware-site
diff lib/redmine/plugin.rb @ 41:7f0e922c8982 luisf
merged with new version from trunk
author | luisf |
---|---|
date | Fri, 19 Nov 2010 14:45:28 +0000 |
parents | 94944d00e43c |
children | cbb26bc654de |
line wrap: on
line diff
--- a/lib/redmine/plugin.rb Thu Nov 18 17:50:11 2010 +0000 +++ b/lib/redmine/plugin.rb Fri Nov 19 14:45:28 2010 +0000 @@ -89,6 +89,13 @@ 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