Commit c399e763 authored by Eric Davis's avatar Eric Davis

Add Redmine::Plugin.installed?(:name) method to check if a plugin is installed

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4293 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 397222f1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment