user action
This commit is contained in:
1 parent
3d0a1cef56
commit
37aa950028
7 files changed
+46
No files matched your search
@@ -31,6 +31,8 @@ class User
|
||||
# has_many :papers, :autosave => true, :dependent => :destroy
|
||||
has_and_belongs_to_many :sub_role_tags
|
||||
|
||||
has_many :user_actions, :dependent => :destroy
|
||||
|
||||
# has_and_belongs_to_many :statuses
|
||||
has_and_belongs_to_many :roles
|
||||
has_and_belongs_to_many :sub_roles
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
class UserAction
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
belongs_to :user
|
||||
field :params,:type => Hash
|
||||
|
||||
field :page
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user