Sha256: 446f8c3bf0e3d9f314b00b1c5104ec4ff7c45bb519a2d61642f3d6cff8d924d9

Contents?: true

Size: 445 Bytes

Versions: 48

Compression:

Stored size: 445 Bytes

Contents

module Incline
  class AccessGroupGroupMember < ActiveRecord::Base
    belongs_to :group, class_name: 'Incline::AccessGroup'
    belongs_to :member, class_name: 'Incline::AccessGroup'

    validates :group_id, presence: true
    validates :member_id, presence: true, uniqueness: { scope: :group_id }

    # member_id should not equal group_id or cause infinite recursion.
    # these two issues are addressed in the AccessGroup model.
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.3.14 app/models/incline/access_group_group_member.rb
incline-0.3.13 app/models/incline/access_group_group_member.rb
incline-0.3.12 app/models/incline/access_group_group_member.rb
incline-0.3.11 app/models/incline/access_group_group_member.rb
incline-0.3.10 app/models/incline/access_group_group_member.rb
incline-0.3.9 app/models/incline/access_group_group_member.rb
incline-0.3.8 app/models/incline/access_group_group_member.rb
incline-0.3.7 app/models/incline/access_group_group_member.rb
incline-0.3.6 app/models/incline/access_group_group_member.rb
incline-0.3.5 app/models/incline/access_group_group_member.rb
incline-0.3.4 app/models/incline/access_group_group_member.rb
incline-0.3.3 app/models/incline/access_group_group_member.rb
incline-0.3.2 app/models/incline/access_group_group_member.rb
incline-0.3.1 app/models/incline/access_group_group_member.rb
incline-0.3.0 app/models/incline/access_group_group_member.rb
incline-0.2.36 app/models/incline/access_group_group_member.rb
incline-0.2.35 app/models/incline/access_group_group_member.rb
incline-0.2.34 app/models/incline/access_group_group_member.rb
incline-0.2.28 app/models/incline/access_group_group_member.rb
incline-0.2.27 app/models/incline/access_group_group_member.rb