Sha256: 67cdb30d94a5a511e9ba4944d4d4da0d3ee73148ae5189bc9946bcb486812c00

Contents?: true

Size: 210 Bytes

Versions: 9

Compression:

Stored size: 210 Bytes

Contents

module Thredded
  class Category < ActiveRecord::Base
    belongs_to :messageboard
    has_many :topic_categories
    has_many :topics, through: :topic_categories

    validates :name, presence: true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
thredded-0.0.12 app/models/thredded/category.rb
thredded-0.0.10 app/models/thredded/category.rb
thredded-0.0.9 app/models/thredded/category.rb
thredded-0.0.8 app/models/thredded/category.rb
thredded-0.0.7 app/models/thredded/category.rb
thredded-0.0.6 app/models/thredded/category.rb
thredded-0.0.5 app/models/thredded/category.rb
thredded-0.0.4 app/models/thredded/category.rb
thredded-0.0.3 app/models/thredded/category.rb