Skip to content

Add join_counter_data to support filtering on the counter data #18

@ideasasylum

Description

@ideasasylum

with_counter_data uses a select subquery where as this would use join. Perhaps they should be combined?

Site
.joins("INNER JOIN counter_values ON counter_values.parent_id = sites.id AND counter_values.parent_type = 'Site'")
.where(counter_values: {name: "site-confirmed_subscribers", value: 100..})

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions