fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX: Poprawienie ścieżek w XMLEditor, żeby były budowane na podstawie STATIC_URL.
[redakcja.git]
/
redmine
/
redmine_publications
/
init.rb
diff --git
a/redmine/redmine_publications/init.rb
b/redmine/redmine_publications/init.rb
index
1df1e93
..
01afeab
100644
(file)
--- a/
redmine/redmine_publications/init.rb
+++ b/
redmine/redmine_publications/init.rb
@@
-2,26
+2,37
@@
require 'redmine'
# Patches to the Redmine core.
require 'dispatcher'
# Patches to the Redmine core.
require 'dispatcher'
-
-Dispatcher.to_prepare :redmine_
kanban
do
+
+Dispatcher.to_prepare :redmine_
publications
do
require_dependency 'issue'
require_dependency 'issue'
- # Guards against including the module multiple time (like in tests)
+
+ #Guards against including the module multiple time (like in tests)
# and registering multiple callbacks
unless Issue.included_modules.include? RedminePublications::IssuePatch
Issue.send(:include, RedminePublications::IssuePatch)
end
# and registering multiple callbacks
unless Issue.included_modules.include? RedminePublications::IssuePatch
Issue.send(:include, RedminePublications::IssuePatch)
end
+
+ unless Change.included_modules.include? RedminePublications::ChangePatch
+ Change.send(:include, RedminePublications::ChangePatch)
+ end
end
require_dependency 'issue_publication_hook'
end
require_dependency 'issue_publication_hook'
-Redmine::Plugin.register :redmine_publicatons do
+Redmine::Plugin.register :redmine_publicat
i
ons do
name 'Publications managment plugin'
author 'Łukasz Rekucki'
description 'This plugn helps manage issues related to a publication.'
name 'Publications managment plugin'
author 'Łukasz Rekucki'
description 'This plugn helps manage issues related to a publication.'
- version '0.0.3'
+ version '0.0.9'
+
+ # permission :view_issues_for_publication, :publications => :issues
+
+ settings :partial => 'settings/publications_settings',
+ :default => { :project => '0', :pattern => '[^\$].xml', :editorurl => 'http://localhost/:pubid'}
+ menu :application_menu, :publications, { :controller => 'publications', :action => 'index' }, :caption => 'Publikacje'
- requires_redmine :version_or_higher => '0.8.0'
+# requires_redmine :version_or_higher => '0.8.0'
end
end