Sha256: cd23bef15ed6d7e7bf8d6c2e54a982137149e1f328c3359c3362870d0bdd75f2

Contents?: true

Size: 592 Bytes

Versions: 67

Compression:

Stored size: 592 Bytes

Contents

class Course < CoalescingPanda::Course
  belongs_to :account, foreign_key: :coalescing_panda_lti_account_id, class_name: 'Account'
  belongs_to :term, foreign_key: :coalescing_panda_term_id, class_name: 'Term'
  has_many :sections, foreign_key: :coalescing_panda_course_id, class_name: 'Section'
  has_many :enrollments, through: :sections, class_name: 'Enrollment'
  has_many :assignments, foreign_key: :coalescing_panda_course_id, class_name: 'Assignment'
  has_many :submissions, through: :assignments, class_name: 'Submission'
  has_many :users, through: :sections, class_name: 'User'
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
coalescing_panda-5.1.2 spec/dummy/app/models/course.rb
coalescing_panda-5.1.0 spec/dummy/app/models/course.rb
coalescing_panda-5.0.10 spec/dummy/app/models/course.rb
coalescing_panda-5.0.9 spec/dummy/app/models/course.rb
coalescing_panda-5.0.8 spec/dummy/app/models/course.rb
coalescing_panda-5.0.7 spec/dummy/app/models/course.rb
coalescing_panda-5.0.6 spec/dummy/app/models/course.rb
coalescing_panda-5.0.4 spec/dummy/app/models/course.rb
coalescing_panda-5.0.3 spec/dummy/app/models/course.rb
coalescing_panda-5.0.2 spec/dummy/app/models/course.rb
coalescing_panda-5.0.1 spec/dummy/app/models/course.rb
coalescing_panda-5.0.0 spec/dummy/app/models/course.rb
coalescing_panda-5.0.0.beta.2 spec/dummy/app/models/course.rb
coalescing_panda-5.0.0.beta.1 spec/dummy/app/models/course.rb
coalescing_panda-4.8.0.beta.1 spec/dummy/app/models/course.rb
coalescing_panda-4.7.0 spec/dummy/app/models/course.rb
coalescing_panda-4.6.1 spec/dummy/app/models/course.rb
coalescing_panda-4.6.0 spec/dummy/app/models/course.rb
coalescing_panda-4.6.0.rc3 spec/dummy/app/models/course.rb
coalescing_panda-4.6.0.rc2 spec/dummy/app/models/course.rb