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.6 app/models/incline/access_group_group_member.rb
incline-0.2.5 app/models/incline/access_group_group_member.rb
incline-0.2.4 app/models/incline/access_group_group_member.rb
incline-0.2.3 app/models/incline/access_group_group_member.rb
incline-0.1.9 app/models/incline/access_group_group_member.rb
incline-0.1.8 app/models/incline/access_group_group_member.rb
incline-0.1.7 app/models/incline/access_group_group_member.rb
incline-0.1.5 app/models/incline/access_group_group_member.rb