1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove unused Category.has_and_belongs_to_many :popular_grouped_posts definition

This was added at 97403ad but it was never used.
This commit is contained in:
Ryuta Kamizono 2021-04-12 15:05:42 +09:00
parent b47e40bcab
commit 9aed3dcdfe

View file

@ -16,7 +16,6 @@ class Category < ActiveRecord::Base
-> { where title: "Yet Another Testing Title" },
class_name: "Post"
has_and_belongs_to_many :popular_grouped_posts, -> { group("posts.type").having("sum(comments.post_id) > 2").includes(:comments) }, class_name: "Post"
has_and_belongs_to_many :posts_grouped_by_title, -> { group("title").select("title") }, class_name: "Post"
def self.what_are_you