Commit 20a5e415 authored by Gregor Schmidt's avatar Gregor Schmidt

[#425] Avoid deprecated API to define rake tasks with parameters

This should avoid deprecation warnings when using ChiliProject with Rake 0.9
parent a74517b9
...@@ -167,7 +167,7 @@ END_DESC ...@@ -167,7 +167,7 @@ END_DESC
end end
desc "Send a test email to the user with the provided login name" 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 include Redmine::I18n
abort l(:notice_email_error, "Please include the user login to test with. Example: login=examle-login") if args[:login].blank? abort l(:notice_email_error, "Please include the user login to test with. Example: login=examle-login") if args[:login].blank?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment