2016-07-08 13:28:02 +02:00
|
|
|
class Schedule < ActiveRecord::Base
|
|
|
|
|
belongs_to :program
|
|
|
|
|
has_many :event_schedules, dependent: :destroy
|
2016-07-31 18:41:27 +02:00
|
|
|
has_many :events, through: :event_schedules
|
2016-08-18 00:32:16 +05:30
|
|
|
|
|
|
|
|
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def conference_id
|
|
|
|
|
program.conference_id
|
|
|
|
|
end
|
2016-07-08 13:28:02 +02:00
|
|
|
end
|