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.2.26 app/models/incline/access_group_group_member.rb
incline-0.2.25 app/models/incline/access_group_group_member.rb
incline-0.2.24 app/models/incline/access_group_group_member.rb
incline-0.2.23 app/models/incline/access_group_group_member.rb
incline-0.2.22 app/models/incline/access_group_group_member.rb
incline-0.2.21 app/models/incline/access_group_group_member.rb
incline-0.2.20 app/models/incline/access_group_group_member.rb
incline-0.2.19 app/models/incline/access_group_group_member.rb
incline-0.2.18 app/models/incline/access_group_group_member.rb
incline-0.2.17 app/models/incline/access_group_group_member.rb
incline-0.2.16 app/models/incline/access_group_group_member.rb
incline-0.2.15 app/models/incline/access_group_group_member.rb
incline-0.2.14 app/models/incline/access_group_group_member.rb
incline-0.2.13 app/models/incline/access_group_group_member.rb
incline-0.2.12 app/models/incline/access_group_group_member.rb
incline-0.2.11 app/models/incline/access_group_group_member.rb
incline-0.2.10 app/models/incline/access_group_group_member.rb
incline-0.2.9 app/models/incline/access_group_group_member.rb
incline-0.2.8 app/models/incline/access_group_group_member.rb
incline-0.2.7 app/models/incline/access_group_group_member.rb