Sha256: 535c8ba7f367e27e2264629e3f06bf5e2a5e42af38db453a851035cfee81e4a0

Contents?: true

Size: 748 Bytes

Versions: 76

Compression:

Stored size: 748 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', dependent: :destroy
    has_many :submissions, foreign_key: :coalescing_panda_user_id, class_name: 'CoalescingPanda::Submission', dependent: :destroy
    has_many :leader_groups, foreign_key: :leader_id, class_name: 'CoalescingPanda::Group'
    has_many :sections, through: :enrollments
    has_many :courses, through: :sections

    store :roles

    validates :coalescing_panda_lti_account_id, presence: true
    validates :canvas_user_id, presence: true
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

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