X-Git-Url: https://git.mdrn.pl/redakcja_redmine.git/blobdiff_plain/3cd0bfe5475b72e64c26b534e388f772878a408d..2119dcd48d7637772372f542358259b0cc384e35:/init.rb diff --git a/init.rb b/init.rb index f2b5b59..0aa6f07 100644 --- a/init.rb +++ b/init.rb @@ -2,10 +2,11 @@ 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) + + #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) @@ -23,11 +24,11 @@ Redmine::Plugin.register :redmine_publications do # permission :view_issues_for_publication, :publications => :issues settings :partial => 'settings/publications_settings', - :default => { :tracker => '1', :pattern => '.*/[a-z_].xml'} + :default => { :tracker => '1', :pattern => '.*/[a-z_].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