Module: SubjModels::EventScheduleModule
Constant Summary
TypesSupport::EventTypes::EVENT_TYPES, TypesSupport::EventTypes::OFFLINE, TypesSupport::EventTypes::WEBINAR
Class Method Summary
collapse
Instance Method Summary
collapse
#check_string_for_int
Class Method Details
.included(including_class) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/subj_models/event_schedule.rb', line 12
def self.included(including_class)
including_class.class_eval do
include SubjModels::ComprisingExternalId
enum event_type: EVENT_TYPES
belongs_to :event
belongs_to :office
validates :event_date, presence: true
scope :event_id, -> (event_id) { parent_id_scope('event', event_id) }
end
end
|
Instance Method Details
#to_s ⇒ Object
31
32
33
|
# File 'lib/subj_models/event_schedule.rb', line 31
def to_s
id.to_s end
|