updated readme

This commit is contained in:
Mike Kelley
2011-08-27 01:41:48 -06:00
commit 17fee3c6d5
98 changed files with 11421 additions and 0 deletions

14
app/models/category.rb Normal file
View File

@@ -0,0 +1,14 @@
class Category < ActiveRecord::Base
# Associations
has_many :forums, :dependent => :destroy
# Accessors
attr_accessible :title, :state, :position, :category_id
# Scopes
default_scope :order => 'position ASC'
# Validations
validates :title, :presence => true
end