Sha256: 5d7e85b076fff041cfb11a30e604e044b7b86fe83472cc0d00a33946809433a4

Contents?: true

Size: 194 Bytes

Versions: 10

Compression:

Stored size: 194 Bytes

Contents

module Enrollmentable
  extend ActiveSupport::Concern

  included do
    has_many :enrollments, as: :enrollmentable, dependent: :destroy
    has_many :students, through: :enrollments
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
gaku-0.2.4 core/app/models/concerns/enrollmentable.rb
gaku_core-0.2.4 app/models/concerns/enrollmentable.rb
gaku-0.2.3 core/app/models/concerns/enrollmentable.rb
gaku_core-0.2.3 app/models/concerns/enrollmentable.rb
gaku-0.2.2 core/app/models/concerns/enrollmentable.rb
gaku_core-0.2.2 app/models/concerns/enrollmentable.rb
gaku-0.2.1 core/app/models/concerns/enrollmentable.rb
gaku_core-0.2.1 app/models/concerns/enrollmentable.rb
gaku-0.2.0 core/app/models/concerns/enrollmentable.rb
gaku_core-0.2.0 app/models/concerns/enrollmentable.rb