Sha256: 1aab0c3b73b6f6c6e127d046de6197f2711d76601c6a0e4e478c245a7a2c6e0a

Contents?: true

Size: 247 Bytes

Versions: 3

Compression:

Stored size: 247 Bytes

Contents

module MongoidForums
  class Category
    include Mongoid::Document

    has_many :forums, :class_name => "MongoidForums::Forum"


    field :name
    validates :name, :presence => true

    field :order, :type => Integer, :default => 0
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-forums-0.0.3 app/models/mongoid_forums/category.rb
mongoid-forums-0.0.2 app/models/mongoid_forums/category.rb
mongoid-forums-0.0.1 app/models/mongoid_forums/category.rb