comment on max bit flag for user prefs
This commit is contained in:
@@ -16,6 +16,9 @@ class User < ActiveRecord::Base
|
|||||||
ADMIN = 50
|
ADMIN = 50
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# bit_prefs is 64 bits signed so theoretical maximum
|
||||||
|
# is 0x8000 0000 0000 0000
|
||||||
BOOLEAN_ATTRIBUTES = {
|
BOOLEAN_ATTRIBUTES = {
|
||||||
:is_banned => 0x0001,
|
:is_banned => 0x0001,
|
||||||
:has_mail => 0x0002,
|
:has_mail => 0x0002,
|
||||||
|
|||||||
Reference in New Issue
Block a user