DRY up the user model slightly

regular? is just the inverse of staff?
This commit is contained in:
Leonard Garvey 2013-05-18 16:00:35 +10:00
parent 7cf3f16d62
commit 32f4dfd2fb

View File

@ -307,7 +307,7 @@ class User < ActiveRecord::Base
end end
def regular? def regular?
!(admin? || moderator?) !staff?
end end
def password=(password) def password=(password)