Permalink
Browse files

update Rakefile and tasks to match new version of rake

  • Loading branch information...
1 parent 9701221 commit 202f1dc5279ab3dee510518376b859466ae0c898 @matchu matchu committed Jan 3, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 Rakefile
  2. +2 −2 lib/tasks/users.rake
View
@@ -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'
@@ -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

0 comments on commit 202f1dc

Please sign in to comment.