Plugin FAQ » History » Revision 1
Revision 1/8
| Next »
Jean-Baptiste Barth, 2013-05-16 16:27
Frequently Asked Questions about Redmine plugins¶
This page aims at documenting how to achieve simple things in Redmine plugins.
Determine if a module is enabled¶
If your project is in the @project
variable:
if @project.module_enabled?("<module_name>")
First modules are a project level concept. So be sure to make this check in an action that operates at project level. Redmine core generally uses a before_filter
called find_project
to find the current project in standard actions, which populates the @project
variable.
Available modules as of Redmine 2.3.x are: boards, calendar, documents, files, gantt, issue_tracking, news, repository, time_tracking, wiki. Each plugin can add its own module (see Plugin_Tutorial which adds a "polls" module).
Updated by Jean-Baptiste Barth over 11 years ago · 1 revisions