add support for user name changes

This commit is contained in:
albert
2013-03-26 01:03:42 -04:00
parent f4cc6e7d99
commit 520e97485b
13 changed files with 394 additions and 4 deletions

View File

@@ -531,7 +531,7 @@ class User < ActiveRecord::Base
end
def admins
where("is_admin = TRUE")
where("level = ?", Levels::ADMIN)
end
def with_email(email)