Sha256: 6b0a5bc4e42b74be16df2d76133882c20c6722e693b4184c8aa0cbe5757e90e3

Contents?: true

Size: 382 Bytes

Versions: 64

Compression:

Stored size: 382 Bytes

Contents

module MyForum
  class UserGroup < ActiveRecord::Base
    has_many :user_group_links
    has_many :users, through: :user_group_links

    has_many :category_permissions
    has_many :categories, through: :category_permissions

    # TODO fix this
    GUEST_GROUP   = UserGroup.find_by_name('Guests') #find(1)
    MEMBER_GROUP  = UserGroup.find_by_name('Member') #.find(2)
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
my_forum-0.0.2.4 app/models/my_forum/user_group.rb
my_forum-0.0.2.3 app/models/my_forum/user_group.rb
my_forum-0.0.2.2 app/models/my_forum/user_group.rb
my_forum-0.0.2.1 app/models/my_forum/user_group.rb
my_forum-0.0.2 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta60 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta59 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta58 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta57 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta56 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta55 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta54 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta53 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta52 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta51 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta50 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta49 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta48 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta47 app/models/my_forum/user_group.rb
my_forum-0.0.1.beta46 app/models/my_forum/user_group.rb