Sha256: b992b0a4979d65e1c6ca534ed52a6c9fcd21c69ef7ad3b4ce4a9969ed43bbe6b

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

Stored size: 322 Bytes

Contents

class UserGroup < ActiveRecord::Base
  attr_accessible :description, :name

  has_and_belongs_to_many :members, :join_table => "members_user_groups",
                                    :class_name => "User",
                                    :association_foreign_key => "member_id"


  def to_s
    self.name
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alberich-0.2.0 test/dummy/app/models/user_group.rb