Mercurial > hg > soundsoftware-site
diff lib/redmine/plugin.rb @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 513646585e45 |
children | cbb26bc654de |
line wrap: on
line diff
--- a/lib/redmine/plugin.rb Fri Sep 24 14:06:04 2010 +0100 +++ b/lib/redmine/plugin.rb Fri Nov 19 13:24:41 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