fix bitpref references

This commit is contained in:
r888888888
2014-06-23 18:00:31 -07:00
parent e016a5b529
commit ff86f3c298
2 changed files with 4 additions and 2 deletions

View File

@@ -75,7 +75,8 @@ class User < ActiveRecord::Base
end
def unban!
update_column(:is_banned, false)
self.is_banned = false
save
ban.destroy
end
end