mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
- Only use JS for the drag&drop functionality and to the set/alter the time and rooms of the EventSchedule object. - Introduce has_many :events, through: :event_schedules association to get unscheduled event easily
5 lines
157 B
Ruby
5 lines
157 B
Ruby
class Schedule < ActiveRecord::Base
|
|
belongs_to :program
|
|
has_many :event_schedules, dependent: :destroy
|
|
has_many :events, through: :event_schedules
|
|
end
|