Merge pull request #29415 from kamipo/remove_unused_defined_association

Remove unused defined association
This commit is contained in:
Guillermo Iguaran 2017-06-16 20:55:56 -05:00 committed by GitHub
commit 03fa6b2907
2 changed files with 1 additions and 2 deletions

@ -143,7 +143,7 @@ class MergingDifferentRelationsTest < ActiveRecord::TestCase
assert_equal ["Mary", "Mary", "Mary", "David"], posts_by_author_name
end
test "relation merging (using a proc argument)" do
test "relation merging (using a proc argument)" do
dev = Developer.where(name: "Jamis").first
comment_1 = dev.comments.create!(body: "I'm Jamis", post: Post.first)

@ -9,7 +9,6 @@ class Comment < ActiveRecord::Base
belongs_to :post, counter_cache: true
belongs_to :author, polymorphic: true
belongs_to :resource, polymorphic: true
belongs_to :developer
has_many :ratings