Let's not be silly.

This commit is contained in:
Yuki 2015-04-23 06:29:20 +05:30
parent be04d3528c
commit 99965adb7b
1 changed files with 2 additions and 1 deletions

View File

@ -165,7 +165,8 @@ namespace :justask do
user = User.find_by_screen_name(args[:screen_name]) user = User.find_by_screen_name(args[:screen_name])
fail "user #{args[:screen_name]} not found" if user.nil? fail "user #{args[:screen_name]} not found" if user.nil?
user.permanently_banned = false user.permanently_banned = false
user.banned_until = DateTime.now - 0.00001 user.banned_until = nil
user.ban_reason = nil
user.save! user.save!
puts "#{user.screen_name} is no longer banned." puts "#{user.screen_name} is no longer banned."
end end