# HG changeset patch # User luisf # Date 1357661335 0 # Node ID 6b49ed91e183016bb18e2d1c2fc1d4ccda782e76 # Parent 55944e901e9ee8c06e6d49b1b4a4a6b8aadc5915 Fixed Routes and Dispatcher calls in order to be compatible current version of Rails. diff -r 55944e901e9e -r 6b49ed91e183 plugins/redmine_tags/config/routes.rb --- a/plugins/redmine_tags/config/routes.rb Tue Jan 08 16:04:52 2013 +0000 +++ b/plugins/redmine_tags/config/routes.rb Tue Jan 08 16:08:55 2013 +0000 @@ -1,3 +1,3 @@ -ActionController::Routing::Routes.draw do |map| +RedmineApp::Application.routes.draw do map.connect 'projects/set_fieldset_status', :controller => 'projects', :action => 'set_fieldset_status', :conditions => {:method => :post} end \ No newline at end of file diff -r 55944e901e9e -r 6b49ed91e183 plugins/redmine_tags/init.rb --- a/plugins/redmine_tags/init.rb Tue Jan 08 16:04:52 2013 +0000 +++ b/plugins/redmine_tags/init.rb Tue Jan 08 16:08:55 2013 +0000 @@ -16,8 +16,6 @@ # You should have received a copy of the GNU General Public License # along with redmine_tags. If not, see . -config.gem "acts-as-taggable-on", :version => '2.0.6' - require 'redmine' Redmine::Plugin.register :redmine_tags do @@ -38,19 +36,16 @@ end -require 'dispatcher' +ActionDispatch::Callbacks.to_prepare do + require_dependency 'redmine_project_filtering' -Dispatcher.to_prepare :redmine_tags do - - require_dependency 'redmine_project_filtering' - unless Project.included_modules.include?(RedmineTags::Patches::ProjectPatch) Project.send(:include, RedmineTags::Patches::ProjectPatch) end - + unless ProjectsHelper.included_modules.include?(RedmineTags::Patches::ProjectsHelperPatch) ProjectsHelper.send(:include, RedmineTags::Patches::ProjectsHelperPatch) - end + end unless Issue.included_modules.include?(RedmineTags::Patches::IssuePatch) Issue.send(:include, RedmineTags::Patches::IssuePatch)