Mercurial > hg > soundsoftware-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
35:67e8aef29de9 | 41:7f0e922c8982 |
---|---|
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 |