Sha256: b1314138de7fb1ef8e5f2ad73beb2a173802e8019322f11125d49f7a16b1579f

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

module Guts
  # User Group model joins User model and Group model
  # @see Guts::User
  # @see Guts::Group
  class UserGroup < ActiveRecord::Base
    belongs_to :user
    belongs_to :group
    has_many :permissions, as: :permissionable, dependent: :destroy
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
guts-2.1.0 app/models/guts/user_group.rb
guts-2.0.2 app/models/guts/user_group.rb
guts-2.0.1 app/models/guts/user_group.rb
guts-2.0.0 app/models/guts/user_group.rb
guts-1.4.0 app/models/guts/user_group.rb