Sha256: 8d8c95175ff20d67e2979521f6b26a6858dbd6c3df3e4eb47031348636be157c

Contents?: true

Size: 442 Bytes

Versions: 12

Compression:

Stored size: 442 Bytes

Contents

module CoalescingPanda
  class GroupCategory < ActiveRecord::Base
    belongs_to :context, :polymorphic => true
    include SingleTablePolymorphic

    has_many :groups, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::Group'
    has_many :assignments, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::Assignment'
    validates :canvas_group_category_id, presence: true
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coalescing_panda-5.3.0 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.2.2 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.2.2.beta1 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.2.1 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.2.0 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.2.0.beta2 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.2.0.beta1 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.1.13 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.1.12 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.1.11 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.1.10 app/models/coalescing_panda/group_category.rb
coalescing_panda-5.1.9 app/models/coalescing_panda/group_category.rb