fixed tests

This commit is contained in:
albert
2011-10-22 19:01:27 -04:00
parent 5444ad5107
commit 0de90d487b
10 changed files with 19 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
class ForumTopic < ActiveRecord::Base
attr_accessible :title, :original_post_attributes
attr_accessible :title, :original_post_attributes, :is_sticky, :is_locked, :as => [:admin, :moderator, :janitor]
attr_accessible :title, :original_post_attributes, :as => [:member]
attr_accessible :title, :original_post_attributes, :is_sticky, :is_locked, :as => [:admin, :moderator]
belongs_to :creator, :class_name => "User"
belongs_to :updater, :class_name => "User"
has_many :posts, :class_name => "ForumPost", :order => "forum_posts.id asc", :foreign_key => "topic_id", :dependent => :destroy