Mercurial > hg > soundsoftware-site
changeset 1121:6b49ed91e183 redmine-2.2-integration
Fixed Routes and Dispatcher calls in order to be compatible current version of Rails.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 08 Jan 2013 16:08:55 +0000 |
parents | 55944e901e9e |
children | 22ab16c93c1c |
files | plugins/redmine_tags/config/routes.rb plugins/redmine_tags/init.rb |
diffstat | 2 files changed, 5 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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 <http://www.gnu.org/licenses/>. -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)