Sha256: 34fe14a49e3cd5fa0c4f35572ce9762196f78b44ad08bc4f231f23ce548a1c8e

Contents?: true

Size: 465 Bytes

Versions: 14

Compression:

Stored size: 465 Bytes

Contents

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

    has_many :group_memberships, dependent: :destroy, foreign_key: :coalescing_panda_group_id, class_name: 'CoalescingPanda::GroupMembership', dependent: :destroy
    validates :group_category_id, presence: true
    validates :canvas_group_id, presence: true
    validates :coalescing_panda_user_id, presence: true
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
coalescing_panda-4.1.8 app/models/coalescing_panda/group.rb
coalescing_panda-4.1.7 app/models/coalescing_panda/group.rb
coalescing_panda-4.1.6 app/models/coalescing_panda/group.rb
coalescing_panda-4.1.5 app/models/coalescing_panda/group.rb
coalescing_panda-4.1.4 app/models/coalescing_panda/group.rb
coalescing_panda-4.1.3 app/models/coalescing_panda/group.rb
coalescing_panda-4.1.2 app/models/coalescing_panda/group.rb
coalescing_panda-4.1.1 app/models/coalescing_panda/group.rb
coalescing_panda-4.1.0 app/models/coalescing_panda/group.rb
coalescing_panda-4.0.4 app/models/coalescing_panda/group.rb
coalescing_panda-4.0.3 app/models/coalescing_panda/group.rb
coalescing_panda-4.0.2 app/models/coalescing_panda/group.rb
coalescing_panda-4.0.1 app/models/coalescing_panda/group.rb
coalescing_panda-4.0.0 app/models/coalescing_panda/group.rb