added justask:lusers rake task for listing the users

This commit is contained in:
nilsding 2014-11-30 00:16:42 +01:00
parent ed1d43be01
commit 48dd283687
1 changed files with 7 additions and 0 deletions

View File

@ -43,4 +43,11 @@ namespace :justask do
user.save!
puts "#{user.screen_name} no longer an admin"
end
desc "Lists all users."
task lusers: :environment do
User.all.each do |u|
puts "#{sprintf "%3d", u.id}. #{u.screen_name}"
end
end
end