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:
parent
b47e40bcab
commit
9aed3dcdfe
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue