diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-03-01 13:19:47 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-03-01 13:19:47 -0500 |
commit | 2939c2c0e011347d06ba3cc9dfe4ebe3b08f6799 (patch) | |
tree | 33f01db6980e05be5f201e9a985b10303219f7ec | |
parent | 6568d7da636a146578a13cb3a9a096d69dd811a7 (diff) | |
download | rails-2939c2c0e011347d06ba3cc9dfe4ebe3b08f6799.tar.gz rails-2939c2c0e011347d06ba3cc9dfe4ebe3b08f6799.tar.bz2 rails-2939c2c0e011347d06ba3cc9dfe4ebe3b08f6799.zip |
Use the correct model in the test
This was using a model without a default scope what made the test don't
break anymore if the code is removed.
-rw-r--r-- | activerecord/test/models/post.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index a83ef983b8..53cbda83ed 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -78,7 +78,7 @@ class Post < ActiveRecord::Base has_many :comments_with_extend_2, extend: [NamedExtension, NamedExtension2], class_name: "Comment", foreign_key: "post_id" has_many :author_favorites, through: :author - has_many :author_favorites_with_scope, through: :author, class_name: "AuthorFavorite", source: "author_favorites" + has_many :author_favorites_with_scope, through: :author, class_name: "AuthorFavoriteWithScope", source: "author_favorites" has_many :author_categorizations, through: :author, source: :categorizations has_many :author_addresses, through: :author has_many :author_address_extra_with_address, |