提交 56ade751 编写于 作者: J Jeremy Kemper

Explicitly require topic from reply fixture.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 427300e0
require 'fixtures/topic'
class Reply < Topic
belongs_to :topic, :foreign_key => "parent_id", :counter_cache => true
has_many :silly_replies, :dependent => true, :foreign_key => "parent_id"
......@@ -31,4 +33,4 @@ def validate_on_update
end
class SillyReply < Reply
end
\ No newline at end of file
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册