Application_Form/custom_announcement/app/models/custom_bulletin_config.rb

10 lines
425 B
Ruby

class CustomBulletinConfig
include Mongoid::Document
include Mongoid::Timestamps
field :module
field :bind_model , :type => String
field :title_field , :type => String , :default => "slug_title"
field :uid_field , :type => String , :default => "uid"
field :custom_record_callback #if exists, it will call 'custom_record_callback(num)'
#where num is 1 when create bulletin, num is -1 when destroy.
end