Add UserAttribute model, suppose it will store user model want to use which attribute group
This commit is contained in:
1 parent
13065aa85a
commit
9f1de1b543
5 files changed
+32
-3
No files matched your search
@@ -3,4 +3,6 @@ class User
|
||||
|
||||
devise :authenticatable, :recoverable, :rememberable, :trackable
|
||||
|
||||
key :use_attributes
|
||||
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class UserAttribute
|
||||
|
||||
include MongoMapper::Document
|
||||
|
||||
key :ident, String
|
||||
key_i18n :name, String
|
||||
key_i18n :attrs, Array
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user