forked from OpenNeo/impress
update Rakefile and tasks to match new version of rake
This commit is contained in:
parent
9701221035
commit
202f1dc527
2 changed files with 3 additions and 3 deletions
2
Rakefile
2
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'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue