14 lines
283 B
Ruby
14 lines
283 B
Ruby
|
# encoding: utf-8
|
||
|
class SeminarSession
|
||
|
|
||
|
include Mongoid::Document
|
||
|
include Mongoid::Timestamps
|
||
|
|
||
|
field :key
|
||
|
belongs_to :seminar_main
|
||
|
field :seminar_signup_ids, :type => Array, :default => []
|
||
|
def seminar_signups
|
||
|
SeminarSignup.where(:id.in=>seminar_signup_ids)
|
||
|
end
|
||
|
end
|