From 202f1dc5279ab3dee510518376b859466ae0c898 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 2 Jan 2013 23:40:37 -0500 Subject: [PATCH] update Rakefile and tasks to match new version of rake --- Rakefile | 2 +- lib/tasks/users.rake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index e340041e..3b77b68d 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,7 @@ require File.expand_path('../config/application', __FILE__) require 'rake' require 'rake/testtask' -require 'rake/rdoctask' +require 'rdoc/task' require 'resque/tasks' require 'resque_scheduler/tasks' diff --git a/lib/tasks/users.rake b/lib/tasks/users.rake index 019089fc..a89e297e 100644 --- a/lib/tasks/users.rake +++ b/lib/tasks/users.rake @@ -2,13 +2,13 @@ namespace :users do namespace :image_mode do desc "Grants given username access to image mode" - task :add, :username, :needs => :environment do |t, args| + task :add, [:username] => :environment do |t, args| user = toggle_user_image_mode(args, true) puts "#{user.name} has gained access to image mode" end desc "Removes given username's access to image mode" - task :remove, :username, :needs => :environment do |t, args| + task :remove, [:username] => :environment do |t, args| user = toggle_user_image_mode(args, false) puts "#{user.name} has lost access to image mode" end