To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_tags / init.rb @ 757:d38f5a55c590
History | View | Annotate | Download (2.86 KB)
| 1 | 593:f12948591050 | chris | # This file is a part of redmine_tags
|
|---|---|---|---|
| 2 | # redMine plugin, that adds tagging support.
|
||
| 3 | #
|
||
| 4 | # Copyright (c) 2010 Aleksey V Zapparov AKA ixti
|
||
| 5 | #
|
||
| 6 | # redmine_tags is free software: you can redistribute it and/or modify
|
||
| 7 | # it under the terms of the GNU General Public License as published by
|
||
| 8 | # the Free Software Foundation, either version 3 of the License, or
|
||
| 9 | # (at your option) any later version.
|
||
| 10 | #
|
||
| 11 | # redmine_tags is distributed in the hope that it will be useful,
|
||
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
| 14 | # GNU General Public License for more details.
|
||
| 15 | #
|
||
| 16 | # You should have received a copy of the GNU General Public License
|
||
| 17 | # along with redmine_tags. If not, see <http://www.gnu.org/licenses/>.
|
||
| 18 | |||
| 19 | config.gem "acts-as-taggable-on", :version => '2.0.6' |
||
| 20 | |||
| 21 | require 'redmine'
|
||
| 22 | |||
| 23 | Redmine::Plugin.register :redmine_tags do |
||
| 24 | name 'redmine_tags'
|
||
| 25 | author 'Aleksey V Zapparov AKA "ixti"'
|
||
| 26 | description 'redMine tagging support'
|
||
| 27 | version '1.1.4'
|
||
| 28 | url 'http://www.ixti.ru/'
|
||
| 29 | author_url 'http://www.ixti.ru/'
|
||
| 30 | |||
| 31 | requires_redmine :version_or_higher => '1.0.0' |
||
| 32 | |||
| 33 | settings :default => {
|
||
| 34 | :issues_sidebar => 'none', |
||
| 35 | :issues_show_count => 0, |
||
| 36 | :issues_open_only => 0 |
||
| 37 | }, :partial => 'tags/settings' |
||
| 38 | end
|
||
| 39 | |||
| 40 | |||
| 41 | require 'dispatcher'
|
||
| 42 | |||
| 43 | Dispatcher.to_prepare :redmine_tags do |
||
| 44 | 739:b7ac21913927 | luis | |
| 45 | require_dependency 'redmine_project_filtering'
|
||
| 46 | |||
| 47 | 727:e3e958595e07 | luis | unless Project.included_modules.include?(RedmineTags::Patches::ProjectPatch) |
| 48 | Project.send(:include, RedmineTags::Patches::ProjectPatch) |
||
| 49 | end
|
||
| 50 | 739:b7ac21913927 | luis | |
| 51 | unless ProjectsHelper.included_modules.include?(RedmineTags::Patches::ProjectsHelperPatch) |
||
| 52 | ProjectsHelper.send(:include, RedmineTags::Patches::ProjectsHelperPatch) |
||
| 53 | end
|
||
| 54 | 727:e3e958595e07 | luis | |
| 55 | 593:f12948591050 | chris | unless Issue.included_modules.include?(RedmineTags::Patches::IssuePatch) |
| 56 | Issue.send(:include, RedmineTags::Patches::IssuePatch) |
||
| 57 | end
|
||
| 58 | |||
| 59 | unless IssuesHelper.included_modules.include?(RedmineTags::Patches::IssuesHelperPatch) |
||
| 60 | IssuesHelper.send(:include, RedmineTags::Patches::IssuesHelperPatch) |
||
| 61 | end
|
||
| 62 | |||
| 63 | 730:4a9bb3b8d5cd | luis | unless ProjectsController.included_modules.include?(RedmineTags::Patches::ProjectsControllerPatch) |
| 64 | ProjectsController.send(:include, RedmineTags::Patches::ProjectsControllerPatch) |
||
| 65 | end
|
||
| 66 | |||
| 67 | 593:f12948591050 | chris | unless AutoCompletesController.included_modules.include?(RedmineTags::Patches::AutoCompletesControllerPatch) |
| 68 | AutoCompletesController.send(:include, RedmineTags::Patches::AutoCompletesControllerPatch) |
||
| 69 | end
|
||
| 70 | |||
| 71 | unless Query.included_modules.include?(RedmineTags::Patches::QueryPatch) |
||
| 72 | Query.send(:include, RedmineTags::Patches::QueryPatch) |
||
| 73 | end
|
||
| 74 | |||
| 75 | unless QueriesHelper.included_modules.include?(RedmineTags::Patches::QueriesHelperPatch) |
||
| 76 | QueriesHelper.send(:include, RedmineTags::Patches::QueriesHelperPatch) |
||
| 77 | end
|
||
| 78 | end
|
||
| 79 | |||
| 80 | |||
| 81 | require 'redmine_tags/hooks/model_issue_hook'
|
||
| 82 | require 'redmine_tags/hooks/views_issues_hook'
|
||
| 83 | 727:e3e958595e07 | luis | require 'redmine_tags/hooks/views_projects_hook'
|