Sha256: 76196fff0e802a0a7223754a5db7f564d7239da71618316ef72de12bccf07ee9

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

module CoalescingPanda
  class User < ActiveRecord::Base
    belongs_to :account, foreign_key: :coalescing_panda_lti_account_id, class_name: 'CoalescingPanda::LtiAccount'
    has_many :enrollments, foreign_key: :coalescing_panda_user_id, class_name: 'CoalescingPanda::Enrollment'
    has_many :submissions, foreign_key: :coalescing_panda_user_id, class_name: 'CoalescingPanda::Submission'
    has_many :sections, through: :enrollments
    has_many :courses, through: :sections

    store :roles
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
coalescing_panda-3.1.5 app/models/coalescing_panda/user.rb
coalescing_panda-3.1.4 app/models/coalescing_panda/user.rb
coalescing_panda-3.1.3 app/models/coalescing_panda/user.rb
coalescing_panda-3.1.2 app/models/coalescing_panda/user.rb
coalescing_panda-3.1.1 app/models/coalescing_panda/user.rb
coalescing_panda-3.1.0 app/models/coalescing_panda/user.rb