Skip to content

Commit 9aed3dc

Browse files
committed
Remove unused Category.has_and_belongs_to_many :popular_grouped_posts definition
This was added at 97403ad but it was never used.
1 parent b47e40b commit 9aed3dc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

activerecord/test/models/category.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class Category < ActiveRecord::Base
1616
-> { where title: "Yet Another Testing Title" },
1717
class_name: "Post"
1818

19-
has_and_belongs_to_many :popular_grouped_posts, -> { group("posts.type").having("sum(comments.post_id) > 2").includes(:comments) }, class_name: "Post"
2019
has_and_belongs_to_many :posts_grouped_by_title, -> { group("title").select("title") }, class_name: "Post"
2120

2221
def self.what_are_you

0 commit comments

Comments
 (0)