seminar2/app/models/seminar_signup_field_custom.rb

12 lines
302 B
Ruby
Raw Normal View History

class SeminarSignupFieldCustom
include Mongoid::Document
include Mongoid::Timestamps
field :seminar_signup_field_id
field :hidden, type: Boolean, default: true
belongs_to :seminar_main
def seminar_signup_field
2022-11-04 04:38:27 +00:00
SeminarSignupField.find(self.seminar_signup_field_id) rescue nil
end
end