thoughtbot/active-record-recipes

Refactor Chef.with_unhealthy_recipes

Closed this issue · 0 comments

I don't think this joins on unhealthy_recipes.

scope :with_unhealthy_recipes, -> {
joins(:unhealthy_recipes).distinct
}

  • Update example