diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-06-11 21:59:36 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-06-11 22:08:18 +0900 |
commit | c073240f70de81639a340ab68b001a77ffb6237e (patch) | |
tree | fdff278cc03901fa801fcdaacf49d14341bf7001 /activerecord/test | |
parent | f81f840c02cff34c169e6fca348fab9a372c8372 (diff) | |
download | rails-c073240f70de81639a340ab68b001a77ffb6237e.tar.gz rails-c073240f70de81639a340ab68b001a77ffb6237e.tar.bz2 rails-c073240f70de81639a340ab68b001a77ffb6237e.zip |
Remove unused defined association
`belongs_to :developer` on `Comment` model was added in 431f8e0 but it
is unused.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relation/merging_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/models/comment.rb | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/relation/merging_test.rb b/activerecord/test/cases/relation/merging_test.rb index c3b39a9295..3901824aac 100644 --- a/activerecord/test/cases/relation/merging_test.rb +++ b/activerecord/test/cases/relation/merging_test.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) diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb index d227f6fe86..eecf923046 100644 --- a/activerecord/test/models/comment.rb +++ b/activerecord/test/models/comment.rb @@ -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 |