2019-11-26 15:52:52 +00:00
|
|
|
class SeminarSignupFieldCustom
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
|
|
|
|
field :seminar_signup_field_id
|
|
|
|
field :hidden, type: Boolean, default: true
|
|
|
|
belongs_to :seminar_main
|
2021-04-03 16:23:52 +00:00
|
|
|
def seminar_signup_field
|
|
|
|
SeminarSignupField.find(self.seminar_signup_field_id) rescue nil
|
|
|
|
end
|
2019-11-26 15:52:52 +00:00
|
|
|
end
|