Sha256: 83ebf3484d52f40fd3818230f3ebf88b96411d48db004d4e01474c2957bcaa66

Contents?: true

Size: 315 Bytes

Versions: 8

Compression:

Stored size: 315 Bytes

Contents

module CoalescingPanda
  class Enrollment < ActiveRecord::Base
    belongs_to :user, foreign_key: :coalescing_panda_user_id, class_name: 'CoalescingPanda::User'
    belongs_to :section, foreign_key: :coalescing_panda_section_id, class_name: 'CoalescingPanda::Section'

    delegate :account, to: :section
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coalescing_panda-3.1.5 app/models/coalescing_panda/enrollment.rb
coalescing_panda-3.1.4 app/models/coalescing_panda/enrollment.rb
coalescing_panda-3.1.3 app/models/coalescing_panda/enrollment.rb
coalescing_panda-3.1.2 app/models/coalescing_panda/enrollment.rb
coalescing_panda-3.1.1 app/models/coalescing_panda/enrollment.rb
coalescing_panda-3.1.0 app/models/coalescing_panda/enrollment.rb
coalescing_panda-3.0.1 app/models/coalescing_panda/enrollment.rb
coalescing_panda-3.0.0 app/models/coalescing_panda/enrollment.rb