Sha256: a965be9bd2a4b4dbc08f76057cad1ac289b24101ca52fe272ba2fa1274709191

Contents?: true

Size: 657 Bytes

Versions: 19

Compression:

Stored size: 657 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 :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

19 entries across 19 versions & 1 rubygems

Version Path
coalescing_panda-4.1.13 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.12 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.11 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.10 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.9 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.8 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.7 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.6 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.5 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.4 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.3 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.2 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.1 app/models/coalescing_panda/user.rb
coalescing_panda-4.1.0 app/models/coalescing_panda/user.rb
coalescing_panda-4.0.4 app/models/coalescing_panda/user.rb
coalescing_panda-4.0.3 app/models/coalescing_panda/user.rb
coalescing_panda-4.0.2 app/models/coalescing_panda/user.rb
coalescing_panda-4.0.1 app/models/coalescing_panda/user.rb
coalescing_panda-4.0.0 app/models/coalescing_panda/user.rb