From 20a5e415382af38473be7f1ed3d468ce0165b53f Mon Sep 17 00:00:00 2001
From: Gregor Schmidt <ruby@schmidtwisser.de>
Date: Tue, 24 May 2011 17:02:30 +0200
Subject: [PATCH] [#425] Avoid deprecated API to define rake tasks with
 parameters

This should avoid deprecation warnings when using ChiliProject with Rake 0.9
---
 lib/tasks/email.rake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tasks/email.rake b/lib/tasks/email.rake
index 957d9d44c..a74e2b01a 100644
--- a/lib/tasks/email.rake
+++ b/lib/tasks/email.rake
@@ -167,7 +167,7 @@ END_DESC
     end
     
     desc "Send a test email to the user with the provided login name"
-    task :test, :login, :needs => :environment do |task, args|
+    task :test, [:login] => :environment do |task, args|
       include Redmine::I18n
       abort l(:notice_email_error, "Please include the user login to test with. Example: login=examle-login") if args[:login].blank?
 
-- 
GitLab