fix error
This commit is contained in:
parent
19ee758d4b
commit
d37bad98b9
|
@ -1,18 +1,19 @@
|
|||
class MemberLog
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include MemberHelper
|
||||
include Slug
|
||||
|
||||
|
||||
field :todo, as: :slug_title, type: String, localize: true
|
||||
field :todo, as: :slug_title, type: String, localize: true
|
||||
field :complete, localize: true
|
||||
field :excuse, localize: true
|
||||
field :finish, :type => Boolean, :default => false
|
||||
field :checkout, :type => DateTime
|
||||
field :dayoff, :type => Boolean, :default => false
|
||||
|
||||
belongs_to :member_profile
|
||||
belongs_to :member_profile
|
||||
has_many :dayoffs
|
||||
|
||||
def self.get_plugin_datas_to_member(datas)
|
||||
page = Page.where(:module => "member_log").first rescue nil
|
||||
end
|
Loading…
Reference in New Issue