From 85ece993c25533d8f657cc10e69bcb7eb02c5ead Mon Sep 17 00:00:00 2001 From: Daniel Felix Date: Fri, 29 Aug 2014 12:08:33 +0000 Subject: [PATCH] Removed outdated code Well, I think that there won't be any support for Rails 2 or later, doesn't it? As Redmine itself is shifting to Rails 4 and personally the latest supported Versions of Redmine just run with Rails 3.2.x, this won't be needed, what do you think? --- config/routes.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index e8756c9..ad81c61 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,8 +1,4 @@ -# -*- encoding : utf-8 -*- -if Rails::VERSION::MAJOR < 3 - ActionController::Routing::Routes.draw do |map| - map.connect 'work_load/:action/:id', :controller => :work_load - end -else + +RedmineApp::Application.routes.draw do match 'work_load/(:action(/:id))', :controller => 'work_load' -end +end