aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/topic.rb
diff options
context:
space:
mode:
authorMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-07-21 23:29:51 +0300
committerMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-07-21 23:29:51 +0300
commitd2e35e11872942e46994fea8df108832fbd50890 (patch)
treebc3a2d769dc9876cc393700ee323ba07776e7e51 /activerecord/test/models/topic.rb
parentefd2410b3973671f430f04a9ca1501d38b53acf0 (diff)
downloadrails-d2e35e11872942e46994fea8df108832fbd50890.tar.gz
rails-d2e35e11872942e46994fea8df108832fbd50890.tar.bz2
rails-d2e35e11872942e46994fea8df108832fbd50890.zip
fix rails tests
Diffstat (limited to 'activerecord/test/models/topic.rb')
-rw-r--r--activerecord/test/models/topic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb
index f81ffe1d90..d17270021a 100644
--- a/activerecord/test/models/topic.rb
+++ b/activerecord/test/models/topic.rb
@@ -32,7 +32,7 @@ class Topic < ActiveRecord::Base
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"