Zmiany w Redmine:
[redakcja_redmine.git] / init.rb
diff --git a/init.rb b/init.rb
index f2b5b59..01afeab 100644 (file)
--- a/init.rb
+++ b/init.rb
@@ -2,14 +2,19 @@ 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)
   end
+
+  unless Change.included_modules.include? RedminePublications::ChangePatch
+    Change.send(:include, RedminePublications::ChangePatch)
+  end
 end
 
 require_dependency 'issue_publication_hook'
@@ -23,11 +28,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 => { :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