Sha256: 92dea41f1691c03b50752cb34278d997290f52a5a14a65264870891c37da363a
Contents?: true
Size: 685 Bytes
Versions: 8
Compression:
Stored size: 685 Bytes
Contents
module CoalescingPanda class Course < ActiveRecord::Base belongs_to :account, foreign_key: :coalescing_panda_lti_account_id, class_name: 'CoalescingPanda::LtiAccount' belongs_to :term, foreign_key: :coalescing_panda_term_id, class_name: 'CoalescingPanda::Term' has_many :sections, foreign_key: :coalescing_panda_course_id, class_name: 'CoalescingPanda::Section' has_many :enrollments, through: :sections has_many :assignments, foreign_key: :coalescing_panda_course_id, class_name: 'CoalescingPanda::Assignment' has_many :submissions, through: :assignments has_many :users, through: :sections, source: :users, class_name: 'CoalescingPanda::User' end end
Version data entries
8 entries across 8 versions & 1 rubygems