X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7a3192417060241aa0956762a5e101b5b893d22b..bb4a4d16d15e4ac5dc01f6776f4fb3ca595b4706:/redmine/redmine_publications/init.rb?ds=sidebyside diff --git a/redmine/redmine_publications/init.rb b/redmine/redmine_publications/init.rb deleted file mode 100644 index b1739c33..00000000 --- a/redmine/redmine_publications/init.rb +++ /dev/null @@ -1,34 +0,0 @@ -require 'redmine' - -# Patches to the Redmine core. -require 'dispatcher' - -Dispatcher.to_prepare :redmine_publications do - require_dependency 'issue' - - #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 -end - -require_dependency 'issue_publication_hook' - -Redmine::Plugin.register :redmine_publications do - name 'Publications managment plugin' - author 'Łukasz Rekucki' - description 'This plugn helps manage issues related to a publication.' - version '0.0.9' - - # permission :view_issues_for_publication, :publications => :issues - - settings :partial => 'settings/publications_settings', - :default => { :tracker => '1', :pattern => '.*/[a-z_].xml'} - - menu :application_menu, :publications, { :controller => 'publications', :action => 'index' }, :caption => 'Publikacje' - -# requires_redmine :version_or_higher => '0.8.0' - -end -