Sha256: 88462883c3aa7e0e2ce39bb25adcd1b1b65b159f0949c8b80a0e5aaac3cb331d

Contents?: true

Size: 260 Bytes

Versions: 4

Compression:

Stored size: 260 Bytes

Contents

module MongoidForums
  class Group
    include Mongoid::Document

    validates :name, :presence => true

    field :name, type: String
    field :moderator, type: Boolean
    field :members, type: Array, default: []

    def to_s
      name
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-forums-0.0.10 app/models/mongoid_forums/group.rb
mongoid-forums-0.0.9 app/models/mongoid_forums/group.rb
mongoid-forums-0.0.5 app/models/mongoid_forums/group.rb
mongoid-forums-0.0.4 app/models/mongoid_forums/group.rb