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