User: clear deleted_at when unbanning, since we probably set it

This commit is contained in:
joshua stein 2016-06-10 16:31:13 -05:00
parent 71fb5bdaf3
commit 3bebdb80a7

View file

@ -340,6 +340,7 @@ class User < ActiveRecord::Base
self.banned_at = nil
self.banned_by_user_id = nil
self.banned_reason = nil
self.deleted_at = nil
self.save!
m = Moderation.new