We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Category.has_and_belongs_to_many :popular_grouped_posts
1 parent b47e40b commit 9aed3dcCopy full SHA for 9aed3dc
activerecord/test/models/category.rb
@@ -16,7 +16,6 @@ class Category < ActiveRecord::Base
16
-> { where title: "Yet Another Testing Title" },
17
class_name: "Post"
18
19
- has_and_belongs_to_many :popular_grouped_posts, -> { group("posts.type").having("sum(comments.post_id) > 2").includes(:comments) }, class_name: "Post"
20
has_and_belongs_to_many :posts_grouped_by_title, -> { group("title").select("title") }, class_name: "Post"
21
22
def self.what_are_you
0 commit comments