3 # Patches to the Redmine core.
6 Dispatcher.to_prepare :redmine_publications do
7 require_dependency 'issue'
8 # Guards against including the module multiple time (like in tests)
9 # and registering multiple callbacks
10 unless Issue.included_modules.include? RedminePublications::IssuePatch
11 Issue.send(:include, RedminePublications::IssuePatch)
15 require_dependency 'issue_publication_hook'
17 Redmine::Plugin.register :redmine_publications do
18 name 'Publications managment plugin'
19 author 'Łukasz Rekucki'
20 description 'This plugn helps manage issues related to a publication.'
23 # permission :view_issues_for_publication, :publications => :issues
25 settings :partial => 'settings/publications_settings',
26 :default => { :tracker => '1', :pattern => '.*/[a-z_].xml'}
28 menu :application_menu, :publications, { :controller => 'publications', :action => 'index' }, :caption => 'Publikacje'
30 requires_redmine :version_or_higher => '0.8.0'