Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the init logic back into init.rb and just use the rails version …
…to bootstrap
- Loading branch information
Showing
2 changed files
with
51 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,50 @@ | ||
require File.dirname(__FILE__) + "/rails/init" | ||
require 'redmine' | ||
|
||
# Patches to the Redmine core. | ||
require 'dispatcher' | ||
|
||
Dispatcher.to_prepare :redmine_kanban do | ||
require_dependency 'issue' | ||
# Guards against including the module multiple time (like in tests) | ||
# and registering multiple callbacks | ||
unless Issue.included_modules.include? RedmineKanban::IssuePatch | ||
Issue.send(:include, RedmineKanban::IssuePatch) | ||
end | ||
end | ||
|
||
|
||
Redmine::Plugin.register :redmine_kanban do | ||
name 'Kanban' | ||
author 'Eric Davis' | ||
url 'https://projects.littlestreamsoftware.com/projects/redmine-kanban' | ||
author_url 'http://www.littlestreamsoftware.com' | ||
description 'The Redmine Kanban plugin is used to manage issues according to the Kanban system of project management.' | ||
version '0.1.1' | ||
|
||
requires_redmine :version_or_higher => '0.8.0' | ||
|
||
permission(:view_kanban, {:kanbans => [:show]}) | ||
permission(:edit_kanban, {:kanbans => [:update]}) | ||
permission(:manage_kanban, {}) | ||
|
||
settings(:partial => 'settings/kanban_settings', | ||
:default => { | ||
'panes' => { | ||
'incoming' => { 'status' => nil, 'limit' => 5}, | ||
'backlog' => { 'status' => nil, 'limit' => 15}, | ||
'selected' => { 'status' => nil, 'limit' => 8}, | ||
'quick-tasks' => {'limit' => 5}, | ||
'active' => { 'status' => nil, 'limit' => 5}, | ||
'testing' => { 'status' => nil, 'limit' => 5}, | ||
'finished' => {'status' => nil, 'limit' => 7} | ||
} | ||
}) | ||
|
||
menu(:top_menu, | ||
:kanban, | ||
{:controller => 'kanbans', :action => 'show'}, | ||
:caption => :kanban_title, | ||
:if => Proc.new { | ||
User.current.allowed_to?(:view_kanban, nil, :global => true) | ||
}) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1 @@ | ||
require 'redmine' | ||
|
||
# Patches to the Redmine core. | ||
require 'dispatcher' | ||
|
||
Dispatcher.to_prepare :redmine_kanban do | ||
require_dependency 'issue' | ||
# Guards against including the module multiple time (like in tests) | ||
# and registering multiple callbacks | ||
unless Issue.included_modules.include? RedmineKanban::IssuePatch | ||
Issue.send(:include, RedmineKanban::IssuePatch) | ||
end | ||
end | ||
|
||
|
||
Redmine::Plugin.register :redmine_kanban do | ||
name 'Kanban' | ||
author 'Eric Davis' | ||
url 'https://projects.littlestreamsoftware.com/projects/redmine-kanban' | ||
author_url 'http://www.littlestreamsoftware.com' | ||
description 'The Redmine Kanban plugin is used to manage issues according to the Kanban system of project management.' | ||
version '0.1.1' | ||
|
||
requires_redmine :version_or_higher => '0.8.0' | ||
|
||
permission(:view_kanban, {:kanbans => [:show]}) | ||
permission(:edit_kanban, {:kanbans => [:update]}) | ||
permission(:manage_kanban, {}) | ||
|
||
settings(:partial => 'settings/kanban_settings', | ||
:default => { | ||
'panes' => { | ||
'incoming' => { 'status' => nil, 'limit' => 5}, | ||
'backlog' => { 'status' => nil, 'limit' => 15}, | ||
'selected' => { 'status' => nil, 'limit' => 8}, | ||
'quick-tasks' => {'limit' => 5}, | ||
'active' => { 'status' => nil, 'limit' => 5}, | ||
'testing' => { 'status' => nil, 'limit' => 5}, | ||
'finished' => {'status' => nil, 'limit' => 7} | ||
} | ||
}) | ||
|
||
menu(:top_menu, | ||
:kanban, | ||
{:controller => 'kanbans', :action => 'show'}, | ||
:caption => :kanban_title, | ||
:if => Proc.new { | ||
User.current.allowed_to?(:view_kanban, nil, :global => true) | ||
}) | ||
end | ||
require File.dirname(__FILE__) + "/../init" |