提交 d2e35e11 编写于 作者: M Mehmet Emin İNAÇ

fix rails tests

上级 efd2410b
......@@ -32,7 +32,7 @@ def two
end
end
has_many :replies, :dependent => :destroy, :foreign_key => "parent_id"
has_many :replies, dependent: :destroy, foreign_key: "parent_id", autosave: true
has_many :approved_replies, -> { approved }, class_name: 'Reply', foreign_key: "parent_id", counter_cache: 'replies_count'
has_many :unique_replies, :dependent => :destroy, :foreign_key => "parent_id"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册