Sha256: f0e5802ccdeb03edcbd311affd37469354f012335ccb569e01be26e3d8da4609

Contents?: true

Size: 272 Bytes

Versions: 9

Compression:

Stored size: 272 Bytes

Contents

module MongoidForums
  class Group
    include Mongoid::Document

    validates :name, :moderator, :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

9 entries across 9 versions & 2 rubygems

Version Path
mongoid-forums-1.0.7 app/models/mongoid_forums/group.rb
mongoid-forums-1.0.6 app/models/mongoid_forums/group.rb
ack-mongoid-forums-1.0.5 app/models/mongoid_forums/group.rb
mongoid-forums-1.0.4 app/models/mongoid_forums/group.rb
mongoid-forums-1.0.3 app/models/mongoid_forums/group.rb
mongoid-forums-1.0.2 app/models/mongoid_forums/group.rb
mongoid-forums-1.0.1 app/models/mongoid_forums/group.rb
mongoid-forums-1.0.0 app/models/mongoid_forums/group.rb
mongoid-forums-0.0.11 app/models/mongoid_forums/group.rb