Mercurial > hg > soundsoftware-site
comparison lib/redmine/.svn/text-base/plugin.rb.svn-base @ 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 |
comparison
equal
deleted
inserted
replaced
22:40f7cfd4df19 | 37:94944d00e43c |
---|---|
87 # Clears the registered plugins hash | 87 # Clears the registered plugins hash |
88 # It doesn't unload installed plugins | 88 # It doesn't unload installed plugins |
89 def self.clear | 89 def self.clear |
90 @registered_plugins = {} | 90 @registered_plugins = {} |
91 end | 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 def initialize(id) | 100 def initialize(id) |
94 @id = id.to_sym | 101 @id = id.to_sym |
95 end | 102 end |
96 | 103 |