Permalink
Browse files

Merge pull request #29415 from kamipo/remove_unused_defined_association

Remove unused defined association
  • Loading branch information...
guilleiguaran committed Jun 17, 2017
2 parents a3f758a + c073240 commit 03fa6b2907ae68e0c2cfeb8c3e56c080d7ff99c0
Showing with 1 addition and 2 deletions.
  1. +1 −1 activerecord/test/cases/relation/merging_test.rb
  2. +0 −1 activerecord/test/models/comment.rb
@@ -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

0 comments on commit 03fa6b2

Please sign in to comment.