user action

This commit is contained in:
Matt K. Fu committed 2013-05-23 11:55:57 +08:00
1 parent 3d0a1cef56
commit 37aa950028
7 files changed
+46

No files matched your search

+2
View File
@@ -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
+10
View File
@@ -0,0 +1,10 @@
class UserAction
include Mongoid::Document
include Mongoid::Timestamps
belongs_to :user
field :params,:type => Hash
field :page
end