diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-07-21 23:29:51 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-07-21 23:29:51 +0300 |
commit | d2e35e11872942e46994fea8df108832fbd50890 (patch) | |
tree | bc3a2d769dc9876cc393700ee323ba07776e7e51 /activerecord | |
parent | efd2410b3973671f430f04a9ca1501d38b53acf0 (diff) | |
download | rails-d2e35e11872942e46994fea8df108832fbd50890.tar.gz rails-d2e35e11872942e46994fea8df108832fbd50890.tar.bz2 rails-d2e35e11872942e46994fea8df108832fbd50890.zip |
fix rails tests
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/models/topic.rb | 2 |
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" |